Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function setUp() |
||
14 | { |
||
15 | $this->faker = \Faker\Factory::create(); |
||
16 | $this->previousVersion = new Version($this->faker->word); |
||
17 | $this->currentVersion = new Version($this->faker->word); |
||
18 | $this->environment = new Environment($this->faker->word); |
||
19 | $this->server = new Server($this->faker->word); |
||
20 | |||
21 | $this->deployment = new Deployment( |
||
|
|||
22 | $this->environment, |
||
23 | $this->previousVersion, |
||
24 | $this->currentVersion, |
||
25 | $this->server |
||
26 | ); |
||
27 | } |
||
28 | |||
61 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: