| 1 | <?php |
||
| 9 | class JiraAuthentication |
||
| 10 | { |
||
| 11 | /** @var string */ |
||
| 12 | private $host; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | private $username; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | private $password; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @throws InvalidArgumentException |
||
| 22 | */ |
||
| 23 | public function __construct(string $host, string $username, string $password) |
||
| 30 | |||
| 31 | public function host() : string |
||
| 35 | |||
| 36 | public function username() : string |
||
| 40 | |||
| 41 | public function password() : string |
||
| 45 | |||
| 46 | public static function createFromArray(array $yamlConfigArray) : void |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @throws InvalidArgumentException |
||
| 52 | */ |
||
| 53 | private function setHost(string $host) : self |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @throws InvalidArgumentException |
||
| 65 | */ |
||
| 66 | private function setUsername(string $username) : self |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @throws InvalidArgumentException |
||
| 78 | */ |
||
| 79 | private function setPassword(string $password) : self |
||
| 88 | } |
||
| 89 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.