Example #1
0
 /**
  * PropsImmutableException constructor.
  * @param string $string
  */
 public function __construct($string)
 {
     parent::__construct('Props are immutable');
 }
Example #2
0
 public function __construct($name, array $props, array $computed)
 {
     $message = "Prop '{$name}' not exits, available:  " . $this->availablePropsMessage($props, $computed);
     parent::__construct($message);
 }