public function firstAirDateYear($year)
    {
        if ($year instanceof \DateTime) {
            $year = $year->format('Y');
        }

        $this->set('first_air_date_year', (int) $year);

        return $this;
    }
public function firstAirDateYear($year)
    {
        if ($year instanceof \DateTime) {
            $year = $year->format('Y');
        }

        $this->set('first_air_date_year', (int) $year);

        return $this;
    }
public function firstAirDateYear ( $ year ) { if ( $ year instanceof \ DateTime ) { $ year = $ year -> format ( 'Y' ) ; } $ this -> set ( 'first_air_date_year' , ( int ) $ year ) ; return $ this ; }
Filter the results release dates to matches that include this value.
Expected value is a year.

@param  \DateTime|integer $year
@return $this
Filter the results release dates to matches that include this value . Expected value is a year .