Discourse::__construct PHP Метод

__construct() публичный Метод

Takes a response_validator object as a parameter. The response_validator has a validate() method that validates the response from wp_remote_get and wp_remote_post.
public __construct ( $response_validator )
$response_validator
    public function __construct($response_validator)
    {
        $this->response_validator = $response_validator;
        add_action('init', array($this, 'init'));
    }