src/acdhOeaw/schema/SchemaObject.php
public function getResource(bool $create = true, bool $uploadBinary = true): FedoraResource {
        if ($this->res === null) {
            try {
                $this->findResource(false, false);
            } catch (NotFound $e) {
                $this->updateRms($create, $uploadBinary);
            }
        }
        return $this->res;
    }
public function getResource(bool $create = true, bool $uploadBinary = true): FedoraResource {
        if ($this->res === null) {
            try {
                $this->findResource(false, false);
            } catch (NotFound $e) {
                $this->updateRms($create, $uploadBinary);
            }
        }
        return $this->res;
    }
public function getResource ( bool $ create = true , bool $ uploadBinary = true ) : FedoraResource { if ( $ this -> res === null ) { try { $ this -> findResource ( false , false ) ; } catch ( NotFound $ e ) { $ this -> updateRms ( $ create , $ uploadBinary ) ; } } return $ this -> res ; }
Returns repository resource representing given real-world entity.

If it does not exist, it can be created.

@param bool $create should repository resource be created if it does not
exist?
@param bool $uploadBinary should binary data of the real-world entity
be uploaded uppon repository resource creation?
@return FedoraResource
Returns repository resource representing given real - world entity .