| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class VCardException extends \Exception |
||
| 12 | { |
||
| 13 | public static function forExistingProperty(PropertyInterface $property): self |
||
| 17 | ); |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function forExistingPropertyParameter(PropertyParameterInterface $parameter): self |
||
| 24 | ); |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function forNotAllowedPropertyOnVCardKind(PropertyInterface $property, Kind $kind): self |
||
| 28 | { |
||
| 29 | return new self( |
||
| 30 | 'The property "' . get_class($property) . '" you are trying to add can only be added to vCard\'s of the ' . $kind->__toString() . ' kind.' |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function forNotSupportedNode(NodeInterface $node): self |
||
| 39 | ); |
||
| 40 | } |
||
| 42 |