public function getId() { return $this->id; }
/** * * @return integer */ public function getAuthorId() { return $this->author ? $this->author->getId() : false; }