for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Intraxia\Jaxion\Core;
/**
* Trait Annotatable.
*
* Satisfies the Has{Actions,Filters} interface using method annotations.
* @package Intraxia\Jaxion
* @subpackage Core
*/
trait Annotatable {
* Read the class methods and return the filter hooks.
* @return array
public function filter_hooks() {
return HooksReader::read( $this, function( $annotation ) {
return $annotation instanceof Annotation\Filter;
});
}
* Read the class methods and return the action hooks.
public function action_hooks() {
return $annotation instanceof Annotation\Action;