attributeCountLimit = $attributeCountLimit; $this->attributeValueLengthLimit = $attributeValueLengthLimit; } public function builder(iterable $attributes = [], ?AttributeValidatorInterface $attributeValidator = null): AttributesBuilderInterface { $builder = new AttributesBuilder( [], $this->attributeCountLimit, $this->attributeValueLengthLimit, 0, $attributeValidator, ); foreach ($attributes as $key => $value) { $builder[$key] = $value; } return $builder; } }