public function addField(Interfaces\IField $field) { $this->lastItemNameAdd = null; // move to this class method correct if ($field->correct()) { $this->arFields[$field->name] = $field; $this->lastItemNameAdd = $this->arFields[$field->name]; $this->buildet = false; } return $this; }