private function identify()
    {
        $identity = $this->repository->identify();
        $identityNode = $this->response->createElement('Identify');

        // create a node for each property of identify
        $identityNode->appendChild($this->response->createElement('repositoryName', $identity->getRepositoryName()));
        $identityNode->appendChild($this->response->createElement('baseURL', $this->repository->getBaseUrl()));
        $identityNode->appendChild($this->response->createElement('protocolVersion', '2.0'));
        foreach ($identity->getAdminEmails() as $email) {
            $identityNode->appendChild($this->response->createElement('adminEmail', $email));
        }
        $identityNode->appendChild(
            $this->response->createElement('earliestDatestamp', $this->toUtcDateTime($identity->getEarliestDatestamp()))
        );
        $identityNode->appendChild($this->response->createElement('deletedRecord', $identity->getDeletedRecord()));
        $identityNode->appendChild($this->response->createElement('granularity', $identity->getGranularity()));
        if ($identity->getCompression()) {
            $identityNode->appendChild($this->response->createElement('compression', $identity->getCompression()));
        }
        if ($identity->getDescription()) {
            $identityNode->appendChild($this->response->createElement('description', $identity->getDescription()));
        }

        return $identityNode;
    }
private function identify()
    {
        $identity = $this->repository->identify();
        $identityNode = $this->response->createElement('Identify');

        // create a node for each property of identify
        $identityNode->appendChild($this->response->createElement('repositoryName', $identity->getRepositoryName()));
        $identityNode->appendChild($this->response->createElement('baseURL', $this->repository->getBaseUrl()));
        $identityNode->appendChild($this->response->createElement('protocolVersion', '2.0'));
        foreach ($identity->getAdminEmails() as $email) {
            $identityNode->appendChild($this->response->createElement('adminEmail', $email));
        }
        $identityNode->appendChild(
            $this->response->createElement('earliestDatestamp', $this->toUtcDateTime($identity->getEarliestDatestamp()))
        );
        $identityNode->appendChild($this->response->createElement('deletedRecord', $identity->getDeletedRecord()));
        $identityNode->appendChild($this->response->createElement('granularity', $identity->getGranularity()));
        if ($identity->getCompression()) {
            $identityNode->appendChild($this->response->createElement('compression', $identity->getCompression()));
        }
        if ($identity->getDescription()) {
            $identityNode->appendChild($this->response->createElement('description', $identity->getDescription()));
        }

        return $identityNode;
    }
private function identify ( ) { $ identity = $ this -> repository -> identify ( ) ; $ identityNode = $ this -> response -> createElement ( 'Identify' ) ; // create a node for each property of identify $ identityNode -> appendChild ( $ this -> response -> createElement ( 'repositoryName' , $ identity -> getRepositoryName ( ) ) ) ; $ identityNode -> appendChild ( $ this -> response -> createElement ( 'baseURL' , $ this -> repository -> getBaseUrl ( ) ) ) ; $ identityNode -> appendChild ( $ this -> response -> createElement ( 'protocolVersion' , '2.0' ) ) ; foreach ( $ identity -> getAdminEmails ( ) as $ email ) { $ identityNode -> appendChild ( $ this -> response -> createElement ( 'adminEmail' , $ email ) ) ; } $ identityNode -> appendChild ( $ this -> response -> createElement ( 'earliestDatestamp' , $ this -> toUtcDateTime ( $ identity -> getEarliestDatestamp ( ) ) ) ) ; $ identityNode -> appendChild ( $ this -> response -> createElement ( 'deletedRecord' , $ identity -> getDeletedRecord ( ) ) ) ; $ identityNode -> appendChild ( $ this -> response -> createElement ( 'granularity' , $ identity -> getGranularity ( ) ) ) ; if ( $ identity -> getCompression ( ) ) { $ identityNode -> appendChild ( $ this -> response -> createElement ( 'compression' , $ identity -> getCompression ( ) ) ) ; } if ( $ identity -> getDescription ( ) ) { $ identityNode -> appendChild ( $ this -> response -> createElement ( 'description' , $ identity -> getDescription ( ) ) ) ; } return $ identityNode ; }
handles Identify requests
@return \DOMElement
handles Identify requests