public final function setDay( int $day = null )
      : DateTime
   {

      if ( \is_null( $day ) )
      {
         $day = static::CurrentDay();
      }

      return $this->setDateParts( null, null, $day );

   }
public final function setDay( int $day = null )
      : DateTime
   {

      if ( \is_null( $day ) )
      {
         $day = static::CurrentDay();
      }

      return $this->setDateParts( null, null, $day );

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

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