src/SecucardConnect/Client/ProductService.php
protected function initMediaResource(&$arg)
    {
        if (is_string($arg)) {
            $mr = new MediaResource();
            $mr->setUrl($arg);
        } else {
            $mr = $arg;
        }

        $mr->setHttpClient($this->httpClient);
        $mr->setStore($this->storage);
        return $mr;
    }
protected function initMediaResource(&$arg)
    {
        if (is_string($arg)) {
            $mr = new MediaResource();
            $mr->setUrl($arg);
        } else {
            $mr = $arg;
        }

        $mr->setHttpClient($this->httpClient);
        $mr->setStore($this->storage);
        return $mr;
    }
protected function initMediaResource ( & $ arg ) { if ( is_string ( $ arg ) ) { $ mr = new MediaResource ( ) ; $ mr -> setUrl ( $ arg ) ; } else { $ mr = $ arg ; } $ mr -> setHttpClient ( $ this -> httpClient ) ; $ mr -> setStore ( $ this -> storage ) ; return $ mr ; }
Create new or complete a media resource object.
@param MediaResource|string $arg The media resource to initialize or a url of a resource.
@return MediaResource The initialized media resource instance.
Create new or complete a media resource object .