@@ 43-49 (lines=7) @@ | ||
40 | * @param ClientInterface $client |
|
41 | * @param Cache|null $cache |
|
42 | */ |
|
43 | public function __construct(ClientInterface $client, Cache $cache = null) |
|
44 | { |
|
45 | $this->client = $client; |
|
46 | $this->cache = $cache; |
|
47 | $this->cacheEnabled = $cache instanceof Cache; |
|
48 | $this->baseUrl = self::BASE_URL; |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * @return string |
@@ 52-59 (lines=8) @@ | ||
49 | * @param ClientInterface $client |
|
50 | * @param Cache|null $cache |
|
51 | */ |
|
52 | public function __construct(ClientInterface $client, Cache $cache = null) |
|
53 | { |
|
54 | $this->client = $client; |
|
55 | $this->cache = $cache; |
|
56 | $this->cacheEnabled = $cache instanceof Cache; |
|
57 | $this->baseUrl = self::BASE_URL; |
|
58 | $this->trendUrl = self::TRAITS_TREND_URL; |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * @return string |