src/Charcoal/Cms/Service/Manager/EventManager.php
public function setYear($year)
    {
        if (!is_scalar($year)) {
            throw new Exception('Year must be a string or an integer in EventManager setYear method.');
        }
        $this->year = $year;

        return $this->year;
    }
public function setYear($year)
    {
        if (!is_scalar($year)) {
            throw new Exception('Year must be a string or an integer in EventManager setYear method.');
        }
        $this->year = $year;

        return $this->year;
    }
public function setYear ( $ year ) { if ( ! is_scalar ( $ year ) ) { throw new Exception ( 'Year must be a string or an integer in EventManager setYear method.' ) ; } $ this -> year = $ year ; return $ this -> year ; }
Full year.
@param mixed $year Full year.
@throws Exception If argument is not scalar.
@return EventManager
Full year .