Issues (6)

src/Business/Event/ApplicationReadyEvent.php (1 issue)

Labels
Severity
1
<?php
2
3
/*
4
 *  This file is part of the Micro framework package.
5
 *
6
 *  (c) Stanislau Komar <[email protected]>
7
 *
8
 *  For the full copyright and license information, please view the LICENSE
9
 *  file that was distributed with this source code.
10
 */
11
12
namespace Micro\Kernel\App\Business\Event;
13
14
use Micro\Kernel\App\AppKernelInterface;
15
16
readonly class ApplicationReadyEvent implements ApplicationReadyEventInterface
0 ignored issues
show
A parse error occurred: Syntax error, unexpected T_READONLY on line 16 at column 0
Loading history...
17
{
18 11
    public function __construct(private AppKernelInterface $appKernel, private string $environment)
19
    {
20 11
    }
21
22 1
    public function kernel(): AppKernelInterface
23
    {
24 1
        return $this->appKernel;
25
    }
26
27 1
    public function environment(): string
28
    {
29 1
        return $this->environment;
30
    }
31
32 1
    public function systemEnvironment(): string
33
    {
34 1
        return \PHP_SAPI;
35
    }
36
}
37