| Total Complexity | 7 |
| Total Lines | 79 |
| Duplicated Lines | 0 % |
| Coverage | 47.37% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Untrained implements Mechanic |
||
| 10 | { |
||
| 11 | /** @var array */ |
||
| 12 | protected $commands = []; |
||
| 13 | |||
| 14 | /** @var ConsoleWriter */ |
||
| 15 | protected $console; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Untrained constructor. |
||
| 19 | * |
||
| 20 | * @param \App\Support\Console\ConsoleWriter $console |
||
| 21 | */ |
||
| 22 | 50 | public function __construct(ConsoleWriter $console) |
|
| 25 | 50 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Trust the given root certificate file in the Keychain. |
||
| 29 | * |
||
| 30 | * @param string $pem |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | 1 | public function trustCA($pem) |
|
| 36 | 1 | } |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Trust the given certificate file in the Mac Keychain. |
||
| 40 | * |
||
| 41 | * @param string $crt |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | public function trustCertificate($crt) |
||
| 45 | { |
||
| 46 | $this->iAmNotTrainedTo('trust a certificate'); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Return the User's home directory path |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getUserHomePath() |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Check if we're running in test mode |
||
| 61 | * |
||
| 62 | * @return bool |
||
| 63 | */ |
||
| 64 | public function isTesting() |
||
| 65 | { |
||
| 66 | return running_tests(); |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Return commands we've run |
||
| 71 | * |
||
| 72 | * @return mixed |
||
| 73 | */ |
||
| 74 | public function getCommands() |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Give a nice message about not being trained |
||
| 81 | * |
||
| 82 | * @param $activity |
||
| 83 | */ |
||
| 84 | 1 | protected function iAmNotTrainedTo($activity) |
|
| 90 |