1 | <?php |
||
22 | class WordPoints_Hook_Extension_Reversals |
||
23 | extends WordPoints_Hook_Extension |
||
24 | implements WordPoints_Hook_Extension_Hit_ListenerI, |
||
25 | WordPoints_Hook_Extension_Miss_ListenerI { |
||
26 | |||
27 | /** |
||
28 | * @since 1.0.0 |
||
29 | */ |
||
30 | protected $slug = 'reversals'; |
||
31 | |||
32 | /** |
||
33 | * @since 1.0.0 |
||
34 | */ |
||
35 | public function should_hit( WordPoints_Hook_Fire $fire ) { |
||
45 | |||
46 | /** |
||
47 | * @since 1.0.0 |
||
48 | */ |
||
49 | public function after_hit( WordPoints_Hook_Fire $fire ) { |
||
59 | |||
60 | /** |
||
61 | * @since 1.0.0 |
||
62 | */ |
||
63 | public function after_miss( WordPoints_Hook_Fire $fire ) { |
||
66 | |||
67 | /** |
||
68 | * Get the IDs of the hits that should be reversed by this fire. |
||
69 | * |
||
70 | * @since 1.0.0 |
||
71 | * |
||
72 | * @param WordPoints_Hook_Fire $fire The fire object. |
||
73 | * |
||
74 | * @return array The ids the hits to be reversed. |
||
75 | */ |
||
76 | protected function get_hits_to_be_reversed( WordPoints_Hook_Fire $fire ) { |
||
105 | } |
||
106 | |||
108 |