public function getDefinition($identifier)
    {
        // Identifier is a php attribute
        if (isset($this->definitions[$identifier])) {
            return $this->definitions[$identifier];
        }

        // Identifier is a MongoDB Key
        if (isset($this->mongoIndex[$identifier])) {
            return $this->definitions[$this->mongoIndex[$identifier]];
        }

        return null;
    }
public function getDefinition($identifier)
    {
        // Identifier is a php attribute
        if (isset($this->definitions[$identifier])) {
            return $this->definitions[$identifier];
        }

        // Identifier is a MongoDB Key
        if (isset($this->mongoIndex[$identifier])) {
            return $this->definitions[$this->mongoIndex[$identifier]];
        }

        return null;
    }
public function getDefinition ( $ identifier ) { // Identifier is a php attribute if ( isset ( $ this -> definitions [ $ identifier ] ) ) { return $ this -> definitions [ $ identifier ] ; } // Identifier is a MongoDB Key if ( isset ( $ this -> mongoIndex [ $ identifier ] ) ) { return $ this -> definitions [ $ this -> mongoIndex [ $ identifier ] ] ; } return null ; }
Return a definition

@param string $identifier Php attribute name or Document key name

@return mixed  null|Definition
Return a definition