Lines Matching refs:attributes
31 protected $attributes;
45 * @param Attribute ...$attributes
47 public function __construct($dn, Attribute ...$attributes)
50 $this->attributes = $attributes;
68 $this->attributes[] = $attribute;
99 * @param string|Attribute ...$attributes
102 public function reset(...$attributes)
104 foreach ($attributes as $attribute) {
106 foreach ($this->attributes as $i => $attr) {
108 unset($this->attributes[$i]);
130 foreach ($this->attributes as $i => $attr) {
133 $this->attributes[$i] = $attribute;
138 $this->attributes[] = $attribute;
156 foreach ($this->attributes as $attr) {
184 return $this->attributes;
212 $attributes = [];
214 foreach ($this->attributes as $attribute) {
215 $attributes[$attribute->getDescription()] = $attribute->getValues();
218 return $attributes;
227 return new ArrayIterator($this->attributes);
236 return count($this->attributes);
271 * @param array $attributes
274 public static function create(string $dn, array $attributes = []): Entry
276 return self::fromArray($dn, $attributes);
283 * @param array $attributes
286 public static function fromArray(string $dn, array $attributes = []): Entry
291 foreach ($attributes as $attribute => $value) {