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 68... Zeile 68...
68
        echo $str."\n";
68
        echo $str."\n";
69
    }
69
    }
Zeile 70... Zeile 70...
70
 
70
 
71
    /**
71
    /**
72
     * Gets the declaring class.
-
 
73
     *
-
 
74
     * @return \ReflectionClass
72
     * Gets the declaring class.
75
     */
73
     */
76
    public function getDeclaringClass(): \ReflectionClass
74
    public function getDeclaringClass(): \ReflectionClass
77
    {
75
    {
Zeile 104... Zeile 102...
104
     * Gets the class constant modifiers.
102
     * Gets the class constant modifiers.
105
     *
103
     *
106
     * Since this is only used for PHP < 7.1, we can just return "public". All
104
     * Since this is only used for PHP < 7.1, we can just return "public". All
107
     * the fancier modifiers are only available on PHP versions which have their
105
     * the fancier modifiers are only available on PHP versions which have their
108
     * own ReflectionClassConstant class :)
106
     * own ReflectionClassConstant class :)
109
     *
-
 
110
     * @return int
-
 
111
     */
107
     */
112
    public function getModifiers(): int
108
    public function getModifiers(): int
113
    {
109
    {
114
        return \ReflectionMethod::IS_PUBLIC;
110
        return \ReflectionMethod::IS_PUBLIC;
115
    }
111
    }
Zeile 116... Zeile 112...
116
 
112
 
117
    /**
113
    /**
118
     * Gets the constant name.
-
 
119
     *
-
 
120
     * @return string
114
     * Gets the constant name.
121
     */
115
     */
122
    public function getName(): string
116
    public function getName(): string
123
    {
117
    {
124
        return $this->name;
118
        return $this->name;
Zeile 164... Zeile 158...
164
        return true;
158
        return true;
165
    }
159
    }
Zeile 166... Zeile 160...
166
 
160
 
167
    /**
161
    /**
168
     * To string.
-
 
169
     *
-
 
170
     * @return string
162
     * To string.
171
     */
163
     */
172
    public function __toString(): string
164
    public function __toString(): string
173
    {
165
    {
174
        return $this->getName();
166
        return $this->getName();