| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class X509 extends Key |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @param string $certificateContents |
||
| 17 | * @return \SimpleSAML\SAML2\Certificate\X509 |
||
| 18 | */ |
||
| 19 | public static function createFromCertificateData(string $certificateContents): X509 |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} Best place to ensure the logic is encapsulated in a single place |
||
| 34 | * |
||
| 35 | * @param mixed $offset |
||
| 36 | * @param mixed $value |
||
| 37 | * |
||
| 38 | * Type hint not possible due to upstream method signature |
||
| 39 | */ |
||
| 40 | public function offsetSet($offset, $value): void |
||
| 47 | } |
||
| 48 | |||
| 49 | |||
| 50 | /** |
||
| 51 | * Get the certificate representation |
||
| 52 | */ |
||
| 53 | public function getCertificate(): string |
||
| 60 |