| 1 | <?php |
||
| 7 | class Environment |
||
| 8 | { |
||
| 9 | /** @var \SixtyEightPublishers\Application\Environment\IProfileStorage */ |
||
| 10 | private $profileStorage; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param \SixtyEightPublishers\Application\Environment\ProfileContainer $profileContainer |
||
| 14 | * @param \SixtyEightPublishers\Application\Environment\IEnvironmentDetector $detector |
||
| 15 | * @param \SixtyEightPublishers\Application\Environment\IProfileStorage $profileStorage |
||
| 16 | */ |
||
| 17 | public function __construct(ProfileContainer $profileContainer, IEnvironmentDetector $detector, IProfileStorage $profileStorage) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return \SixtyEightPublishers\Application\Environment\ActiveProfile |
||
| 26 | */ |
||
| 27 | public function getProfile() |
||
| 31 | } |
||
| 32 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: