public function __set($property, $value) { if (!in_array($property, static::$params)) { throw new Exception(sprintf('"%s" is required', $property)); } return parent::__set($property, $value); }
public function __set($property, $value) { if (!in_array($property, static::$params)) { throw new Exception(sprintf('"%s" is required', $property)); } return parent::__set($property, $value); }