| 1 | <?php |
||
| 34 | abstract class Hook |
||
| 35 | { |
||
| 36 | /** |
||
| 37 | * Hook tags |
||
| 38 | * |
||
| 39 | * @var array |
||
| 40 | */ |
||
| 41 | protected static $tags = []; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Get the tags |
||
| 45 | * |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | 1 | public static function getTags() |
|
| 49 | { |
||
| 50 | 1 | return self::$tags; |
|
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Start Hook listen |
||
| 55 | * |
||
| 56 | * @param string $name |
||
| 57 | * @return int |
||
| 58 | */ |
||
| 59 | 10 | public static function listen($name) |
|
| 67 | } |
||
| 68 |