public function __construct(array $attributes, $content) { parent::__construct($attributes); if (!$content) { throw new ConfigurationException(sprintf('Missing content for Button: %s', $this->id)); } $this->content = $content; }
public function __construct(array $attributes) { parent::__construct($attributes); $this->value = $this->requiredAttribute('value'); }