protected function extractVisibility($comments = '')
    {
        $visible = TRUE;
        preg_match('/@visible\ (true|false)\n/i', $comments, $visibility);
        if (count($visibility)) {
            $visible = !('false' === $visibility[1]);
        }

        return $visible;
    }
protected function extractVisibility($comments = '')
    {
        $visible = TRUE;
        preg_match('/@visible\ (true|false)\n/i', $comments, $visibility);
        if (count($visibility)) {
            $visible = !('false' === $visibility[1]);
        }

        return $visible;
    }
protected function extractVisibility ( $ comments = '' ) { $ visible = TRUE ; preg_match ( '/@visible\ (true|false)\n/i' , $ comments , $ visibility ) ; if ( count ( $ visibility ) ) { $ visible = ! ( 'false' === $ visibility [ 1 ] ) ; } return $ visible ; }
Extract visibility from doc comments

@param string $comments

@return boolean
Extract visibility from doc comments