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 92... Zeile 92...
92
        return false;
92
        return false;
93
    }
93
    }
Zeile 94... Zeile 94...
94
 
94
 
95
    /**
95
    /**
96
     * Gets the constant name.
-
 
97
     *
-
 
98
     * @return string
96
     * Gets the constant name.
99
     */
97
     */
100
    public function getName(): string
98
    public function getName(): string
101
    {
99
    {
102
        return $this->name;
100
        return $this->name;
Zeile 103... Zeile 101...
103
    }
101
    }
104
 
102
 
105
    /**
103
    /**
106
     * Gets the namespace name.
104
     * Gets the namespace name.
107
     *
-
 
108
     * Returns '' when the constant is not namespaced.
-
 
109
     *
105
     *
110
     * @return string
106
     * Returns '' when the constant is not namespaced.
111
     */
107
     */
112
    public function getNamespaceName(): string
108
    public function getNamespaceName(): string
113
    {
109
    {
Zeile 128... Zeile 124...
128
        return $this->value;
124
        return $this->value;
129
    }
125
    }
Zeile 130... Zeile 126...
130
 
126
 
131
    /**
127
    /**
132
     * Checks if this constant is defined in a namespace.
-
 
133
     *
-
 
134
     * @return bool
128
     * Checks if this constant is defined in a namespace.
135
     */
129
     */
136
    public function inNamespace(): bool
130
    public function inNamespace(): bool
137
    {
131
    {
138
        return \strpos($this->name, '\\') !== false;
132
        return \strpos($this->name, '\\') !== false;
Zeile 139... Zeile 133...
139
    }
133
    }
140
 
134
 
141
    /**
-
 
142
     * To string.
-
 
143
     *
135
    /**
144
     * @return string
136
     * To string.
145
     */
137
     */
146
    public function __toString(): string
138
    public function __toString(): string
147
    {
139
    {