1 | <?php |
||
24 | class FailedToInstantiateObject extends RuntimeException implements ShortcodeException { |
||
25 | |||
26 | /** |
||
27 | * Create a new instance from a passed-in class name or factory callable. |
||
28 | * |
||
29 | * @since 0.3.0 |
||
30 | * |
||
31 | * @param mixed $factory Class name or factory callable. |
||
32 | * @param string $interface Interface name that the object should have |
||
33 | * implemented. |
||
34 | * @return static Instance of an exception. |
||
35 | */ |
||
36 | public static function fromFactory( $factory, $interface ) { |
||
58 | |||
59 | /** |
||
60 | * Create a new instance from a passed-in object that does not implement the |
||
61 | * correct interface. |
||
62 | * |
||
63 | * @since 0.3.0 |
||
64 | * |
||
65 | * @param mixed $factory Class name or factory callable. |
||
66 | * @param string $interface Interface name that the object should have |
||
67 | * implemented. |
||
68 | * @return static Instance of an exception. |
||
69 | */ |
||
70 | public static function fromInvalidObject( $factory, $interface ) { |
||
77 | } |
||
78 |