public final function setYear( int $year = null )
      : DateTime
   {

      if ( \is_null( $year ) )
      {
         $year = static::CurrentYear();
      }

      return $this->setDateParts( $year );

   }
public final function setYear( int $year = null )
      : DateTime
   {

      if ( \is_null( $year ) )
      {
         $year = static::CurrentYear();
      }

      return $this->setDateParts( $year );

   }
public final function setYear ( int $ year = null ) : DateTime { if ( \ is_null ( $ year ) ) { $ year = static :: CurrentYear ( ) ; } return $ this -> setDateParts ( $ year ) ; }
Changes the current defined year to defined value.

@param  integer $year The new year value. If the value NULL is used it means: Use the year of NOW()
@return \Beluga\Date\DateTime
Changes the current defined year to defined value .