public function methods($filter = null)
    {
        if (is_null($filter))
        {
            $methods = $this->object->getMethods();
        }
        else
        {
            $methods = $this->object->getMethods($filter);
        }

        return array_map([$this, 'extractComment'], $methods);
    }
public function methods($filter = null)
    {
        if (is_null($filter))
        {
            $methods = $this->object->getMethods();
        }
        else
        {
            $methods = $this->object->getMethods($filter);
        }

        return array_map([$this, 'extractComment'], $methods);
    }
public function methods ( $ filter = null ) { if ( is_null ( $ filter ) ) { $ methods = $ this -> object -> getMethods ( ) ; } else { $ methods = $ this -> object -> getMethods ( $ filter ) ; } return array_map ( [ $ this , 'extractComment' ] , $ methods ) ; }
Get the comments for all methods.

@param integer|null $filter
@return array
Get the comments for all methods .