Lines Matching defs:attributes
15 * @var array the attributes of this element
17 protected $attributes = [];
26 * @param array $attributes
28 public function __construct($type, $attributes = [])
31 $this->attributes = $attributes;
48 * An empty string is returned for unset attributes.
61 $this->attributes[$name] = $value;
66 if (isset($this->attributes[$name])) {
67 return $this->attributes[$name];
81 if (isset($this->attributes[$name])) {
82 unset($this->attributes[$name]);
88 * Gets or adds a all given attributes at once
90 * @param array|null $attributes
93 public function attrs($attributes = null)
96 if ($attributes) {
97 foreach ((array) $attributes as $key => $val) {
103 return $this->attributes;