public function isPage(Page $page = null)
    {
        return null !== $page && $this->getId() === $page->getId();
    }
public function isPage(Page $page = null)
    {
        return null !== $page && $this->getId() === $page->getId();
    }
public function isPage ( Page $ page = null ) { return null !== $ page && $ this -> getId ( ) === $ page -> getId ( ) ; }
Tells if the the given page is this page.

Useful when not hydrating all fields.

@param Page $Page
@return Boolean
Tells if the the given page is this page .