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 25... Zeile 25...
25
    const PREFER_PHP7 = 'PREFER_PHP7';
25
    const PREFER_PHP7 = 'PREFER_PHP7';
Zeile 26... Zeile 26...
26
 
26
 
27
    /**
27
    /**
28
     * Possible kinds of parsers for the factory, from PHP parser library.
28
     * Possible kinds of parsers for the factory, from PHP parser library.
29
     *
29
     *
30
     * @return array
30
     * @return string[]
31
     */
31
     */
32
    public static function getPossibleKinds(): array
32
    public static function getPossibleKinds(): array
33
    {
33
    {
34
        return ['ONLY_PHP5', 'ONLY_PHP7', 'PREFER_PHP5', 'PREFER_PHP7'];
34
        return ['ONLY_PHP5', 'ONLY_PHP7', 'PREFER_PHP5', 'PREFER_PHP7'];
Zeile 46... Zeile 46...
46
 
46
 
47
    /**
47
    /**
48
     * New parser instance with given kind.
48
     * New parser instance with given kind.
49
     *
49
     *
50
     * @param string|null $kind One of class constants (only for PHP parser 2.0 and above)
-
 
51
     *
-
 
52
     * @return Parser
50
     * @param string|null $kind One of class constants (only for PHP parser 2.0 and above)
53
     */
51
     */
54
    public function createParser($kind = null): Parser
52
    public function createParser($kind = null): Parser
55
    {
53
    {