| @@ 44-57 (lines=14) @@ | ||
| 41 | ||
| 42 | protected $client; |
|
| 43 | ||
| 44 | public function __construct($baseUri, $bearerToken, $client = null) |
|
| 45 | { |
|
| 46 | $this->baseUri = str_Replace('/cfp', '', $baseUri); |
|
| 47 | ||
| 48 | $this->bearerToken = $bearerToken; |
|
| 49 | if (null === $client) { |
|
| 50 | $client = new Client([ |
|
| 51 | 'headers' => [ |
|
| 52 | 'Accept' => 'application/json', |
|
| 53 | ] |
|
| 54 | ]); |
|
| 55 | } |
|
| 56 | $this->client = $client; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * @param \DateInterval $interval |
|
| @@ 51-64 (lines=14) @@ | ||
| 48 | ||
| 49 | private $filter = null; |
|
| 50 | ||
| 51 | public function __construct($baseUri, $bearerToken, $client = null) |
|
| 52 | { |
|
| 53 | $this->baseUri = $baseUri; |
|
| 54 | $this->bearerToken = $bearerToken; |
|
| 55 | if (null === $client) { |
|
| 56 | $client = new Client([ |
|
| 57 | 'headers' => [ |
|
| 58 | 'Accept' => 'application/json', |
|
| 59 | ], |
|
| 60 | ]); |
|
| 61 | } |
|
| 62 | $this->client = $client; |
|
| 63 | $this->output = new NullOutput(); |
|
| 64 | } |
|
| 65 | ||
| 66 | public function setFilter(CfpFilterInterface $filter) { |
|
| 67 | $this->filter = $filter; |
|