Пример #1
0
 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;
 }
Пример #2
0
 public function __construct(array $attributes)
 {
     parent::__construct($attributes);
     $this->value = $this->requiredAttribute('value');
 }