Phalcon\Db\Adapter\MongoDB\Model\IndexInput::bsonSerialize PHP Method

bsonSerialize() public method

Serialize the index information to BSON for index creation.
See also: MongoDB\Collection::createIndexes()
See also: http://php.net/mongodb-bson-serializable.bsonserialize
public bsonSerialize ( ) : array
return array
    public function bsonSerialize()
    {
        return $this->index;
    }