public function isPublic()
    {
        if ($this->getIsActive() && ($this->getPublishAt()->getTimestamp() < time()) && (!$this->getExpiresAt() || $this->getExpiresAt()->getTimestamp() > time())) {
            return true;
        }

        return false;
    }
public function isPublic()
    {
        if ($this->getIsActive() && ($this->getPublishAt()->getTimestamp() < time()) && (!$this->getExpiresAt() || $this->getExpiresAt()->getTimestamp() > time())) {
            return true;
        }

        return false;
    }
public function isPublic ( ) { if ( $ this -> getIsActive ( ) && ( $ this -> getPublishAt ( ) -> getTimestamp ( ) < time ( ) ) && ( ! $ this -> getExpiresAt ( ) || $ this -> getExpiresAt ( ) -> getTimestamp ( ) > time ( ) ) ) { return true ; } return false ; }
Is visible for user?

@return boolean
Is visible for user?