| 1 | <?php |
||
| 11 | class Resize extends Action |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Action parameter |
||
| 15 | * |
||
| 16 | * @const ACTION |
||
| 17 | */ |
||
| 18 | const ACTION = 'resize'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Action HTTP Method |
||
| 22 | * |
||
| 23 | * @const method |
||
| 24 | */ |
||
| 25 | const METHOD = 'POST'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Size slug |
||
| 29 | * |
||
| 30 | * @var string size |
||
| 31 | */ |
||
| 32 | protected $size; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Boolean to determine whether to increase disk size |
||
| 36 | * |
||
| 37 | * @var bool disk |
||
| 38 | */ |
||
| 39 | protected $disk; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Constructor for the Resize Action |
||
| 43 | * |
||
| 44 | * @param Array values |
||
| 45 | */ |
||
| 46 | 9 | public function __construct(Array $values) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Return the body of the request |
||
| 66 | * |
||
| 67 | * @return string json representation of the body |
||
| 68 | */ |
||
| 69 | 2 | public function getBody() |
|
| 77 | } |
||
| 78 | |||
| 79 |