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 93... Zeile 93...
93
        throw new \RuntimeException('Not yet implemented because it\'s unclear what I should do here :)');
93
        throw new \RuntimeException('Not yet implemented because it\'s unclear what I should do here :)');
94
    }
94
    }
Zeile 95... Zeile 95...
95
 
95
 
96
    /**
96
    /**
97
     * Get language construct name.
-
 
98
     *
-
 
99
     * @return string
97
     * Get language construct name.
100
     */
98
     */
101
    public function getName(): string
99
    public function getName(): string
102
    {
100
    {
103
        return $this->keyword;
101
        return $this->keyword;
Zeile 104... Zeile 102...
104
    }
102
    }
105
 
103
 
106
    /**
-
 
107
     * None of these return references.
-
 
108
     *
104
    /**
109
     * @return bool
105
     * None of these return references.
110
     */
106
     */
111
    public function returnsReference(): bool
107
    public function returnsReference(): bool
112
    {
108
    {
Zeile 143... Zeile 139...
143
        return false;
139
        return false;
144
    }
140
    }
Zeile 145... Zeile 141...
145
 
141
 
146
    /**
142
    /**
147
     * To string.
-
 
148
     *
-
 
149
     * @return string
143
     * To string.
150
     */
144
     */
151
    public function __toString(): string
145
    public function __toString(): string
152
    {
146
    {
153
        return $this->getName();
147
        return $this->getName();
Zeile 154... Zeile 148...
154
    }
148
    }
155
 
149
 
156
    /**
150
    /**
157
     * Check whether keyword is a (known) language construct.
151
     * Check whether keyword is a (known) language construct.
158
     *
-
 
159
     * @param string $keyword
-
 
160
     *
152
     *
161
     * @return bool
153
     * @param string $keyword
162
     */
154
     */
163
    public static function isLanguageConstruct(string $keyword): bool
155
    public static function isLanguageConstruct(string $keyword): bool
164
    {
156
    {