public function setRemoteEntry(Entry $remoteEntry): void
    {
        $this->remoteEntry = $remoteEntry;
        $this->id = $this->remoteEntry->getSpace()->getId() . '|' . $this->remoteEntry->getId();

        $contentType = $this->remoteEntry->getContentType();
        if ($contentType === null) {
            return;
        }

        $nameField = $contentType->getDisplayField();
        if ($nameField === null) {
            return;
        }

        /** @var callable $callable */
        $callable = [$remoteEntry, 'get' . $nameField->getId()];
        $this->name = call_user_func($callable);
    }
public function setRemoteEntry(Entry $remoteEntry): void
    {
        $this->remoteEntry = $remoteEntry;
        $this->id = $this->remoteEntry->getSpace()->getId() . '|' . $this->remoteEntry->getId();

        $contentType = $this->remoteEntry->getContentType();
        if ($contentType === null) {
            return;
        }

        $nameField = $contentType->getDisplayField();
        if ($nameField === null) {
            return;
        }

        /** @var callable $callable */
        $callable = [$remoteEntry, 'get' . $nameField->getId()];
        $this->name = call_user_func($callable);
    }
public function setRemoteEntry ( Entry $ remoteEntry ) : void { $ this -> remoteEntry = $ remoteEntry ; $ this -> id = $ this -> remoteEntry -> getSpace ( ) -> getId ( ) . '|' . $ this -> remoteEntry -> getId ( ) ; $ contentType = $ this -> remoteEntry -> getContentType ( ) ; if ( $ contentType === null ) { return ; } $ nameField = $ contentType -> getDisplayField ( ) ; if ( $ nameField === null ) { return ; } /** @var callable $callable */ $ callable = [ $ remoteEntry , 'get' . $ nameField -> getId ( ) ] ; $ this -> name = call_user_func ( $ callable ) ; }
Sets the remote entry.
Sets the remote entry .