protected function _primaryDataMayHaveUuid()
    {
        $path = $this->_getPathObject('data.id');

        if (!$this->_hasProperty($path)) {
            return true;
        }

        $id = $this->_getProperty($path->dotted);

        if (Validation::uuid($id)) {
            return true;
        }

        $this->_errorCollection->addDataIdError(
            $title = '_notUuid',
            $details = "Primary data member 'id' is not a valid UUID",
            $status = null,
            $idx = null,
            $aboutLink = $this->_getAboutLink('http://jsonapi.org/format/#crud-creating-client-ids')
        );

        return false;
    }
protected function _primaryDataMayHaveUuid()
    {
        $path = $this->_getPathObject('data.id');

        if (!$this->_hasProperty($path)) {
            return true;
        }

        $id = $this->_getProperty($path->dotted);

        if (Validation::uuid($id)) {
            return true;
        }

        $this->_errorCollection->addDataIdError(
            $title = '_notUuid',
            $details = "Primary data member 'id' is not a valid UUID",
            $status = null,
            $idx = null,
            $aboutLink = $this->_getAboutLink('http://jsonapi.org/format/#crud-creating-client-ids')
        );

        return false;
    }
protected function _primaryDataMayHaveUuid ( ) { $ path = $ this -> _getPathObject ( 'data.id' ) ; if ( ! $ this -> _hasProperty ( $ path ) ) { return true ; } $ id = $ this -> _getProperty ( $ path -> dotted ) ; if ( Validation :: uuid ( $ id ) ) { return true ; } $ this -> _errorCollection -> addDataIdError ( $ title = '_notUuid' , $ details = "Primary data member 'id' is not a valid UUID" , $ status = null , $ idx = null , $ aboutLink = $ this -> _getAboutLink ( 'http://jsonapi.org/format/#crud-creating-client-ids' ) ) ; return false ; }
Ensures that primary data 'id' member is valid IF it exists.

@return bool
Ensures that primary data id member is valid IF it exists .