Skip to content

Commit

Permalink
add ability or attribute setters to take callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Milloy committed Feb 19, 2019
1 parent ef5eefd commit bd24656
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/NowCal/Traits/HasAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ public function end($datetime): self
/**
* Set the event's summary.
*
* @param string $summary
* @param mixed $summary
*
* @return \NowCal\NowCal
*/
public function summary(string $summary): self
public function summary($summary): self
{
$this->set('summary', $summary);

Expand All @@ -163,11 +163,11 @@ public function summary(string $summary): self
/**
* Set the even'ts location.
*
* @param string $location
* @param mixed $location
*
* @return \NowCal\NowCal
*/
public function location(string $location): self
public function location($location): self
{
$this->set('location', $location);

Expand Down

0 comments on commit bd24656

Please sign in to comment.