src/Tools/ClassMetadata/ClassMetadata.php
private function processOptionAnnotation(\JPC\MongoDB\ODM\Annotations\Mapping\Option $annotation)
    {
        $options = [];
        if (isset($annotation->writeConcern)) {
            $options["writeConcern"] = $annotation->writeConcern->getWriteConcern();
        }

        if (isset($annotation->readConcern)) {
            $options["readConcern"] = $annotation->readConcern->getReadConcern();
        }

        if (isset($annotation->readPreference)) {
            $options["readPreference"] = $annotation->readPreference->getReadPreference();
        }

        if (isset($annotation->typeMap)) {
            $options["typeMap"] = $annotation->typeMap;
        }

        $this->collectionInfo->setOptions($options);
    }
private function processOptionAnnotation(\JPC\MongoDB\ODM\Annotations\Mapping\Option $annotation)
    {
        $options = [];
        if (isset($annotation->writeConcern)) {
            $options["writeConcern"] = $annotation->writeConcern->getWriteConcern();
        }

        if (isset($annotation->readConcern)) {
            $options["readConcern"] = $annotation->readConcern->getReadConcern();
        }

        if (isset($annotation->readPreference)) {
            $options["readPreference"] = $annotation->readPreference->getReadPreference();
        }

        if (isset($annotation->typeMap)) {
            $options["typeMap"] = $annotation->typeMap;
        }

        $this->collectionInfo->setOptions($options);
    }
private function processOptionAnnotation ( \ JPC \ MongoDB \ ODM \ Annotations \ Mapping \ Option $ annotation ) { $ options = [ ] ; if ( isset ( $ annotation -> writeConcern ) ) { $ options [ "writeConcern" ] = $ annotation -> writeConcern -> getWriteConcern ( ) ; } if ( isset ( $ annotation -> readConcern ) ) { $ options [ "readConcern" ] = $ annotation -> readConcern -> getReadConcern ( ) ; } if ( isset ( $ annotation -> readPreference ) ) { $ options [ "readPreference" ] = $ annotation -> readPreference -> getReadPreference ( ) ; } if ( isset ( $ annotation -> typeMap ) ) { $ options [ "typeMap" ] = $ annotation -> typeMap ; } $ this -> collectionInfo -> setOptions ( $ options ) ; }
Process option annotation

@param   \JPC\MongoDB\ODM\Annotations\Mapping\Option     $annotation Annotation to process
@return  void
Process option annotation