public function __construct($start, $end, $ip) { parent::__construct(); $this->_start = $start; $this->_end = $end; $this->_ip = $ip; $this->_model = new WsServiceCounter(); }
public function __construct($mode) { parent::__construct(); $this->_mode = $mode; switch ($mode) { case self::SMS_MODE: $this->_packageModel = new WsPackageSms(); break; case self::MAIL_MODE: $this->_packageModel = new WsPackageMail(); break; default: $this->_mode = null; throw new Logic_Exception("{$mode} is not valid mode for package!"); } }
/** * * @param Base_Model_Table $model */ public function __construct(Base_Model_Table $model = null) { $this->_model = $model; parent::__construct(); }
/** * Konstruktor * * @param Base_Model_Table $dbModelTable */ public function __construct(Base_Model_Table $dbModelTable = null) { $this->dbModelTable = $dbModelTable; parent::__construct(); }