ApplicationState   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 27
c 0
b 0
f 0
ccs 0
cts 10
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 24.02.19
6
 * Time: 15:52.
7
 */
8
9
namespace Modules\Synchronisation\States;
10
11
use Modules\Application\Entities\Application;
12
13
class ApplicationState
14
{
15
    public $script_id;
16
    public $machine_id;
17
18
    public $script_config;
19
    public $schedule;
20
    public $proxy;
21
    public $credentials;
22
23
    public $paused;
24
    public $active;
25
26
    /**
27
     * ApplicationState constructor.
28
     * @param Application app
29
     */
30
    public function __construct(Application $app)
31
    {
32
        $this->script_id = $app->script_id;
0 ignored issues
show
Bug introduced by
The property script_id does not seem to exist on Modules\Application\Entities\Application. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
33
        $this->machine_id = $app->machine_id;
0 ignored issues
show
Bug introduced by
The property machine_id does not exist on Modules\Application\Entities\Application. Did you mean machine?
Loading history...
34
        $this->script_config = $app->script_config;
0 ignored issues
show
Bug introduced by
The property script_config does not seem to exist on Modules\Application\Entities\Application. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
35
        $this->schedule = $app->schedule;
0 ignored issues
show
Bug introduced by
The property schedule does not seem to exist on Modules\Application\Entities\Application. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
36
        $this->proxy = $app->proxy;
0 ignored issues
show
Bug introduced by
The property proxy does not seem to exist on Modules\Application\Entities\Application. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
37
        $this->credentials = $app->credentials;
0 ignored issues
show
Bug introduced by
The property credentials does not seem to exist on Modules\Application\Entities\Application. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
38
        $this->paused = $app->paused;
0 ignored issues
show
Bug introduced by
The property paused does not seem to exist on Modules\Application\Entities\Application. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
39
        $this->active = $app->active;
0 ignored issues
show
Bug introduced by
The property active does not seem to exist on Modules\Application\Entities\Application. Are you sure there is no database migration missing?

Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.

Loading history...
40
    }
41
}
42