Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 200
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
3
/*
3
/*
4
 * This file is part of Psy Shell.
4
 * This file is part of Psy Shell.
5
 *
5
 *
6
 * (c) 2012-2022 Justin Hileman
6
 * (c) 2012-2023 Justin Hileman
7
 *
7
 *
8
 * For the full copyright and license information, please view the LICENSE
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
9
 * file that was distributed with this source code.
Zeile 53... Zeile 53...
53
    }
53
    }
Zeile 54... Zeile 54...
54
 
54
 
55
    /**
55
    /**
56
     * Get defined methods for the given class or object Reflector.
56
     * Get defined methods for the given class or object Reflector.
57
     *
57
     *
58
     * @param bool       $showAll   Include private and protected methods
58
     * @param bool             $showAll   Include private and protected methods
59
     * @param \Reflector $reflector
59
     * @param \ReflectionClass $reflector
60
     * @param bool       $noInherit Exclude inherited methods
60
     * @param bool             $noInherit Exclude inherited methods
61
     *
61
     *
62
     * @return array
62
     * @return array
63
     */
63
     */
64
    protected function getMethods(bool $showAll, \Reflector $reflector, bool $noInherit = false): array
64
    protected function getMethods(bool $showAll, \ReflectionClass $reflector, bool $noInherit = false): array
65
    {
65
    {
Zeile 66... Zeile 66...
66
        $className = $reflector->getName();
66
        $className = $reflector->getName();
67
 
67
 
Zeile 110... Zeile 110...
110
 
110
 
111
    /**
111
    /**
112
     * Get a label for the particular kind of "class" represented.
112
     * Get a label for the particular kind of "class" represented.
113
     *
113
     *
114
     * @param \ReflectionClass $reflector
-
 
115
     *
-
 
116
     * @return string
114
     * @param \ReflectionClass $reflector
117
     */
115
     */
118
    protected function getKindLabel(\ReflectionClass $reflector): string
116
    protected function getKindLabel(\ReflectionClass $reflector): string
119
    {
117
    {
120
        if ($reflector->isInterface()) {
118
        if ($reflector->isInterface()) {
Zeile 128... Zeile 126...
128
 
126
 
129
    /**
127
    /**
130
     * Get output style for the given method's visibility.
128
     * Get output style for the given method's visibility.
131
     *
129
     *
132
     * @param \ReflectionMethod $method
-
 
133
     *
-
 
134
     * @return string
130
     * @param \ReflectionMethod $method
135
     */
131
     */
136
    private function getVisibilityStyle(\ReflectionMethod $method): string
132
    private function getVisibilityStyle(\ReflectionMethod $method): string
137
    {
133
    {
138
        if ($method->isPublic()) {
134
        if ($method->isPublic()) {