/** * {@inherited} */ public function set($keySegment, $value) { $itemKey = $this->getItemKey($keySegment); // if value to set is an subcontractor instance we have to let it 'know' that // it's needed by a specified contractor so it would do a proper initialization if ($value instanceof AbstractSubcontractor && ($this->currentSectionType = SECTION_TYPE_SERVICE)) { $value->setContractorName($this->getCurrentSectionName()); } return parent::set($itemKey, $value); }
public function __construct(array $items = array()) { parent::__construct($items); }