src/SecucardConnect/Client/MediaResourceTrait.php
public function getContents($cache = true)
    {
        $result = $this->downloadMe($cache);
        if ($cache) {
            $result = $this->store->get($this->getKey($this->url));
        }

        return $result;
    }
public function getContents($cache = true)
    {
        $result = $this->downloadMe($cache);
        if ($cache) {
            $result = $this->store->get($this->getKey($this->url));
        }

        return $result;
    }
public function getContents ( $ cache = true ) { $ result = $ this -> downloadMe ( $ cache ) ; if ( $ cache ) { $ result = $ this -> store -> get ( $ this -> getKey ( $ this -> url ) ) ; } return $ result ; }
Return the contents of this resource as stream.
@param bool $cache True if the content should be cached locally by using the storage instance passed when
creating the secucard connect API client.
@return StreamInterface
@throws ClientError
Return the contents of this resource as stream .