File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2
2
declare (strict_types=1 );
3
3
4
4
use Dbalabka \Enumeration \Examples \Enum \Day ;
5
+ use Dbalabka \StaticConstructorLoader \StaticConstructorLoader ;
5
6
6
7
if (version_compare (PHP_VERSION , '7.4.0beta ' , '< ' )) {
7
8
trigger_error ('This code requires PHP >= 7.4 ' , E_USER_NOTICE );
8
9
return ;
9
10
}
10
11
11
12
$ composer = require_once (__DIR__ . '/../vendor/autoload.php ' );
12
- $ loader = new ConstructStatic \ Loader ($ composer );
13
+ $ loader = new StaticConstructorLoader ($ composer );
13
14
14
15
class EnumTest
15
16
{
Original file line number Diff line number Diff line change 2
2
declare (strict_types=1 );
3
3
4
4
use Dbalabka \Enumeration \Examples \Enum \Action ;
5
+ use Dbalabka \StaticConstructorLoader \StaticConstructorLoader ;
5
6
6
7
if (version_compare (PHP_VERSION , '7.4.0beta ' , '< ' )) {
7
8
trigger_error ('This code requires PHP >= 7.4 ' , E_USER_NOTICE );
8
9
return ;
9
10
}
10
11
11
12
$ composer = require_once (__DIR__ . '/../vendor/autoload.php ' );
12
- $ loader = new ConstructStatic \ Loader ($ composer );
13
+ $ loader = new StaticConstructorLoader ($ composer );
13
14
14
15
$ viewAction = Action::$ view ;
15
16
Original file line number Diff line number Diff line change 2
2
declare (strict_types=1 );
3
3
4
4
use Dbalabka \Enumeration \Examples \Enum \Planet ;
5
+ use Dbalabka \StaticConstructorLoader \StaticConstructorLoader ;
5
6
6
7
if (version_compare (PHP_VERSION , '7.4.0beta ' , '< ' )) {
7
8
trigger_error ('This code requires PHP >= 7.4 ' , E_USER_NOTICE );
8
9
return ;
9
10
}
10
11
11
12
$ composer = require_once (__DIR__ . '/../vendor/autoload.php ' );
12
- $ loader = new ConstructStatic \ Loader ($ composer );
13
+ $ loader = new StaticConstructorLoader ($ composer );
13
14
14
15
$ earthWeight = 175 ;
15
16
$ mass = $ earthWeight / Planet::$ earth ->surfaceGravity ();
Original file line number Diff line number Diff line change 3
3
4
4
use Dbalabka \Enumeration \Exception \EnumerationException ;
5
5
use Dbalabka \Enumeration \Examples \Enum \Color ;
6
+ use Dbalabka \StaticConstructorLoader \StaticConstructorLoader ;
6
7
7
8
if (version_compare (PHP_VERSION , '7.4.0beta ' , '< ' )) {
8
9
trigger_error ('This code requires PHP >= 7.4 ' , E_USER_NOTICE );
9
10
return ;
10
11
}
11
12
12
13
$ composer = require_once (__DIR__ . '/../vendor/autoload.php ' );
13
- $ loader = new ConstructStatic \ Loader ($ composer );
14
+ $ loader = new StaticConstructorLoader ($ composer );
14
15
15
16
class Square implements Serializable
16
17
{
You can’t perform that action at this time.
0 commit comments