Skimia\Foundation
  • Namespace
  • Function
  • Tree
  • Todo
  • Download

Namespaces

  • None
  • PHP
  • Skimia
    • Foundation
      • Annotations
      • Exceptions
        • Fail
      • Providers
        • Traits
      • Support
        • Traits
      • Testing
        • Traits

Functions

  • ensure_trait_used_in_subclass_of_or_fail
  • is_subclass_of_or_fail

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

LogicException if the trait is used in class not extends the required
Skimia\Foundation API documentation generated by ApiGen