| 1 | <?php |
||
| 14 | class AcceptAnswerHandler |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The authentication. |
||
| 18 | * |
||
| 19 | * @var Authentication |
||
| 20 | */ |
||
| 21 | private $authentication; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The data transformer. |
||
| 25 | * |
||
| 26 | * @var ResponseAnswerDataTransformer |
||
| 27 | */ |
||
| 28 | private $dataTransformer; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The HTTP domain class. |
||
| 32 | * |
||
| 33 | * @var Http |
||
| 34 | */ |
||
| 35 | private $http; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Constructor. |
||
| 39 | * |
||
| 40 | * @param Http $http The HTTP domain class |
||
| 41 | * @param ResponseAnswerDataTransformer $dataTransformer The answer data transformer |
||
| 42 | * @param Authentication $authentication The authentication |
||
| 43 | */ |
||
| 44 | public function __construct( |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Casts an accept vote on the given answer. |
||
| 56 | * |
||
| 57 | * More info: https://api.stackexchange.com/docs/accept-answer |
||
| 58 | * |
||
| 59 | * @param AcceptAnswerCommand $command The command |
||
| 60 | * |
||
| 61 | * @return mixed |
||
| 62 | */ |
||
| 63 | public function handle(AcceptAnswerCommand $command) |
||
| 73 | } |
||
| 74 |