id) { throw new \Exception('Wrong model'); } $this->block = $block; } public function getDocTargetType() { return Document::TYPE_BLOCK_PROGRESS; } /** * @return mixed */ public function getBlock() { return $this->block; } /** * @return integer */ public function getDocTargetId() { return $this->block->id; } }