Function ensure_trait_used_in_subclass_of_or_fail
Located at
Exceptions/Fail/helpers.php
Parameters summary
|
$trait |
The trait name (use get_class(self)). |
|
$object |
A class name or an object instance. No error is generated if the class does not exist. |
|
$class_name |
The required parent class name |
boolean|true |
$allow_string = true |
Return value summary
boolean
|
bool |
Thrown exceptions summary
|
if the trait is used in class not extends the required |