public function __construct(Yiiq $owner, $id) { if (!$id) { throw new \CException('Job id cannot be empty.'); } parent::__construct($owner); $this->id = $id; }
public function __construct(Yiiq $owner, $type, $class) { parent::__construct($owner); $this->type = $type; $this->class = $class; }
public function __construct(Yiiq $owner, Job $job) { parent::__construct($owner); $this->job = $job; }