Exemplo n.º 1
0
 /**
  * @param string  $name
  * @param mixed   $value
  */
 public function __construct($name, $value)
 {
     parent::__construct($value);
     $this->setName($name);
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  *
  * Defined here for type strictness. Parameters are passed to the
  * superclass.
  *
  * @param mixed ...$args
  */
 public function __construct(...$args)
 {
     parent::__construct((string) $args[0], $args[1], isset($args[2]) ? $args[2] : null);
 }