Skip to content

Commit

Permalink
Update Event.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Torann authored May 8, 2019
1 parent d6f8191 commit b0955b9
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/ContextTypes/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ class Event extends Thing
'location' => Place::class,
];

/**
* Constructor. Merges extendedStructure up
*
* @param array $attributes
* @param array $extendedStructure
*/
public function __construct(array $attributes, array $extendedStructure = [])
{
parent::__construct(
$attributes, array_merge($this->structure, $this->extendedStructure, $extendedStructure)
);
}
/**
* Constructor. Merges extendedStructure up
*
* @param array $attributes
* @param array $extendedStructure
*/
public function __construct(array $attributes, array $extendedStructure = [])
{
parent::__construct(
$attributes, array_merge($this->structure, $this->extendedStructure, $extendedStructure)
);
}

/**
/**
* Set offers attributes.
*
* @param mixed $values
Expand All @@ -51,4 +51,4 @@ protected function setOffersAttribute($values)

return $values;
}
}
}

0 comments on commit b0955b9

Please sign in to comment.