Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
add setter and getter
Browse files Browse the repository at this point in the history
  • Loading branch information
avrahamappel committed Mar 4, 2019
1 parent 11895a8 commit df2680b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,26 @@ public function getMutatedAttributes()
{
return array_merge(parent::getMutatedAttributes(), $this->moneyAttributes);
}

/**
* Set the mutated attributes at runtime.
*
* @param array $moneyAttributes
* @return Order
*/
public function setMoneyAttributes(array $moneyAttributes): Order
{
$this->moneyAttributes = $moneyAttributes;

return $this;
}

/**
* @return array
*/
public function getMoneyAttributes(): array
{
return $this->moneyAttributes;
}
}

0 comments on commit df2680b

Please sign in to comment.