yii\db\DataReader::__construct PHP Méthode

__construct() public méthode

Constructor.
public __construct ( Command $command, array $config = [] )
$command Command the command generating the query result
$config array name-value pairs that will be used to initialize the object properties
    public function __construct(Command $command, $config = [])
    {
        $this->_statement = $command->pdoStatement;
        $this->_statement->setFetchMode(\PDO::FETCH_ASSOC);
        parent::__construct($config);
    }