| @@ 41-52 (lines=12) @@ | ||
| 38 | * |
|
| 39 | * @throws CertificateFileNotFoundException |
|
| 40 | */ |
|
| 41 | public function __construct(string $path, string $passPhrase) |
|
| 42 | { |
|
| 43 | if (!\file_exists($path) || !\is_file($path)) { |
|
| 44 | throw new CertificateFileNotFoundException(\sprintf( |
|
| 45 | 'The certificate file "%s" was not found.', |
|
| 46 | $path |
|
| 47 | )); |
|
| 48 | } |
|
| 49 | ||
| 50 | $this->path = $path; |
|
| 51 | $this->passPhrase = $passPhrase; |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * Get path |
|
| @@ 47-59 (lines=13) @@ | ||
| 44 | * |
|
| 45 | * @throws CertificateFileNotFoundException |
|
| 46 | */ |
|
| 47 | public function __construct(string $teamId, string $key, string $path) |
|
| 48 | { |
|
| 49 | if (!\file_exists($path) || !\is_file($path)) { |
|
| 50 | throw new CertificateFileNotFoundException(\sprintf( |
|
| 51 | 'The certificate file "%s" was not found.', |
|
| 52 | $path |
|
| 53 | )); |
|
| 54 | } |
|
| 55 | ||
| 56 | $this->teamId = $teamId; |
|
| 57 | $this->key = $key; |
|
| 58 | $this->path = $path; |
|
| 59 | } |
|
| 60 | ||
| 61 | /** |
|
| 62 | * Get the identifier of team (Apple Developer) |
|