/** * @param $value * @param bool|false $label */ public function __construct($value, $label = false) { if (!$label) { $this->label = 'Alternative'; } $this->uri = 'alternative'; $this->name = 'alternative'; parent::__construct($value, $this->uri, $this->name, $label); }
/** * @param $value * @param bool|false $label */ public function __construct($value, $label = false) { if (!$label) { $this->label = 'has body'; } $this->uri = 'hasBody'; $this->name = 'hasBody'; parent::__construct($value, $this->uri, $this->name, $label); }