/** * @param string $email */ public function __construct($email) { Assertion::string($email); parent::__construct(); $this->email = $email; $this->name = ''; $this->password = ''; }
public function propertyChanged($sender, $propertyName, $oldValue, $newValue) { if ($propertyName !== 'updatedAt') { $this->owner->setUpdatedAt(Carbon::now()); } }