public function format($format = null)
    {
        if ($format !== null) {
            $this->format = $format;
        }

        return $this->format;
    }
public function format($format = null)
    {
        if ($format !== null) {
            $this->format = $format;
        }

        return $this->format;
    }
public function format ( $ format = null ) { if ( $ format !== null ) { $ this -> format = $ format ; } return $ this -> format ; }
Returns requested format

@param null|string $format

@return string
Returns requested format