src/Entity/Notice.php
public function shown()
    {
        if (is_null($this->date_closed)) {
            $this->date_closed = new \DateTime();
            $this->date_closed->modify(sprintf('+%s seconds', $this->lifetime));
        }
        $this->status = self::STATUS_SHOWN;
    }
public function shown()
    {
        if (is_null($this->date_closed)) {
            $this->date_closed = new \DateTime();
            $this->date_closed->modify(sprintf('+%s seconds', $this->lifetime));
        }
        $this->status = self::STATUS_SHOWN;
    }
public function shown ( ) { if ( is_null ( $ this -> date_closed ) ) { $ this -> date_closed = new \ DateTime ( ) ; $ this -> date_closed -> modify ( sprintf ( '+%s seconds' , $ this -> lifetime ) ) ; } $ this -> status = self :: STATUS_SHOWN ; }
Notice shown.
Notice shown .