Camspiers\StatisticalClassifier\DataSource\PDOQuery::__construct PHP Method

__construct() public method

Creates the data source with the query details
public __construct ( string $category, PDO $pdo, string $query, string $documentColumn )
$category string Category of the query
$pdo PDO The PDO connection object
$query string The query to run
$documentColumn string The column of the document
    public function __construct($category, PDO $pdo, $query, $documentColumn)
    {
        $this->category = $category;
        $this->pdo = $pdo;
        $this->query = $query;
        $this->documentColumn = $documentColumn;
    }