| 1 | <?php namespace Phabricator; |
||
| 17 | trait ClientAwareTrait { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @type \Phabricator\Client\ClientInterface |
||
| 21 | */ |
||
| 22 | protected $client; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * set the current client implementation |
||
| 26 | * |
||
| 27 | * @param \Phabricator\Client\ClientInterface $client |
||
| 28 | */ |
||
| 29 | 10 | public function setClient(ClientInterface $client) { |
|
| 32 | |||
| 33 | /** |
||
| 34 | * returns the currently used client |
||
| 35 | * |
||
| 36 | * @return \Phabricator\Client\ClientInterface |
||
| 37 | */ |
||
| 38 | 4 | public function getClient() { |
|
| 41 | |||
| 42 | } |