public function __construct($response_validator) { $this->response_validator = $response_validator; add_action('init', array($this, 'init')); }