1: <?php
2:
3: class Starship
4: {
5:
6: protected $_engineering = null;
7:
8: public function __construct($engineering)
9: {
10: $this->_engineering = $engineering;
11: }
12:
13: public function enterOrbit()
14: {
15: $this->_engineering->disengageWarp();
16: $this->_engineering->runDiagnosticLevel(5);
17: $this->_engineering->divertPower(0.40, 'sensors');
18: $this->_engineering->divertPower(0.30, 'auxengines');
19: $this->_engineering->runDiagnosticLevel(1);
20:
21: // We can add more runDiagnosticLevel() calls without failing the test
22: // anywhere above since they are unordered.
23: }
24:
25: }
26: