for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Hook reaction class.
*
* @package wordpoints-hooks-api
* @since 1.0.0
*/
* Bootstrap for representing a hook reaction.
abstract class WordPoints_Hook_Reaction implements WordPoints_Hook_ReactionI {
protected $ID;
* The reaction storage object.
* @var WordPoints_Hook_Reaction_StorageI
protected $storage;
//
// Public Methods.
public function __construct( $id, WordPoints_Hook_Reaction_StorageI $storage ) {
$this->ID = wordpoints_int( $id );
$this->storage = $storage;
}
public function __get( $var ) {
if ( 'ID' === $var ) {
return $this->ID;
return null;
public function get_reactor_slug() {
return $this->storage->get_reactor_slug();
public function get_storage_group_slug() {
return $this->storage->get_slug();
public function get_context_id() {
return $this->storage->get_context_id();
$this->storage->get_context_id();
array|false
array
WordPoints_Hook_ReactionI::get_context_id
boolean
// EOF