| Total Complexity | 7 | 
| Total Lines | 55 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 17 | class MessariClient  | 
            ||
| 18 | { | 
            ||
| 19 | protected const BASE_URI = 'https://data.messari.io/api/v1';  | 
            ||
| 20 | |||
| 21 | /** @var BaseClientInterface */  | 
            ||
| 22 | private $baseClient;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * MessariClient constructor.  | 
            ||
| 26 | * @param BaseClientInterface|null $baseClient  | 
            ||
| 27 | */  | 
            ||
| 28 | 20 | public function __construct(?BaseClientInterface $baseClient = null)  | 
            |
| 32 | 20 | }  | 
            |
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * @return BaseClientInterface  | 
            ||
| 36 | */  | 
            ||
| 37 | 17 | public function getBaseClient(): BaseClientInterface  | 
            |
| 38 |     { | 
            ||
| 39 | 17 | return $this->baseClient;  | 
            |
| 40 | }  | 
            ||
| 41 | |||
| 42 | /**  | 
            ||
| 43 | * @return Assets  | 
            ||
| 44 | */  | 
            ||
| 45 | 1 | public function assets(): Assets  | 
            |
| 46 |     { | 
            ||
| 47 | 1 | return new Assets($this);  | 
            |
| 48 | }  | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * @return Markets  | 
            ||
| 52 | */  | 
            ||
| 53 | 1 | public function markets(): Markets  | 
            |
| 54 |     { | 
            ||
| 55 | 1 | return new Markets($this);  | 
            |
| 56 | }  | 
            ||
| 57 | |||
| 58 | /**  | 
            ||
| 59 | * @return News  | 
            ||
| 60 | */  | 
            ||
| 61 | 1 | public function news(): News  | 
            |
| 64 | }  | 
            ||
| 65 | |||
| 66 | /**  | 
            ||
| 67 | * @return string  | 
            ||
| 68 | */  | 
            ||
| 69 | 20 | private function getBaseUri(): string  | 
            |
| 72 | }  | 
            ||
| 73 | }  | 
            ||
| 74 |