public function setDelegate($delegate_code, Dunagan_Base_Model_Delegate_Interface $delegateObject) { // TODO check to ensure that $delegateObject implements Dunagan_Base_Model_Delegate_Interface $this->_delegate_helper_array[$delegate_code] = $delegateObject; $delegateObject->setDelegator($this); return $this; }
public function setDelegate($delegate_code, Dunagan_Base_Model_Delegate_Interface $delegateObject) { if ($delegate_code == self::RAW_DATA_PROCESSOR_DELEGATE_CODE) { $this->_rawDataProcessor = $delegateObject; $delegateObject->setDelegator($this); } return $this; }