36 lines
638 B
PHP
36 lines
638 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
/*
|
||
|
* This file is part of the "php-ipfs" package.
|
||
|
*
|
||
|
* (c) Robert Schönthal <robert.schoenthal@gmail.com>
|
||
|
*
|
||
|
* For the full copyright and license information, please view the LICENSE
|
||
|
* file that was distributed with this source code.
|
||
|
*/
|
||
|
|
||
|
namespace IPFS;
|
||
|
|
||
|
use IPFS\Command\Command;
|
||
|
use IPFS\Driver\Driver;
|
||
|
|
||
|
class Client implements Driver
|
||
|
{
|
||
|
/**
|
||
|
* @var Driver
|
||
|
*/
|
||
|
private $driver;
|
||
|
|
||
|
public function __construct(Driver $driver)
|
||
|
{
|
||
|
$this->driver = $driver;
|
||
|
}
|
||
|
|
||
|
public function execute(Command $command)
|
||
|
{
|
||
|
return $this->driver->execute($command);
|
||
|
}
|
||
|
}
|