yii\test\ActiveFixture::getTableSchema PHP Method

getTableSchema() public method

public getTableSchema ( ) : yii\db\TableSchema
return yii\db\TableSchema the schema information of the database table associated with this fixture.
    public function getTableSchema()
    {
        if ($this->_table !== null) {
            return $this->_table;
        }
        $db = $this->db;
        $tableName = $this->tableName;
        if ($tableName === null) {
            /* @var $modelClass \yii\db\ActiveRecord */
            $modelClass = $this->modelClass;
            $tableName = $modelClass::tableName();
        }
        $this->_table = $db->getSchema()->getTableSchema($tableName);
        if ($this->_table === null) {
            throw new InvalidConfigException("Table does not exist: {$tableName}");
        }
        return $this->_table;
    }