| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace Soheilrt\AdobeConnectClient\Client\Commands; |
||||
| 4 | |||||
| 5 | use Soheilrt\AdobeConnectClient\Client\Abstracts\Command; |
||||
| 6 | use Soheilrt\AdobeConnectClient\Client\Converter\Converter; |
||||
| 7 | use Soheilrt\AdobeConnectClient\Client\Helpers\StatusValidate; |
||||
| 8 | |||||
| 9 | /** |
||||
| 10 | * Move a SCO to other folder. |
||||
| 11 | * |
||||
| 12 | * More Info see {@link https://helpx.adobe.com/adobe-connect/webservices/sco-move.html} |
||||
| 13 | */ |
||||
| 14 | class ScoMove extends Command |
||||
| 15 | { |
||||
| 16 | /** |
||||
| 17 | * @var int |
||||
| 18 | */ |
||||
| 19 | protected $scoId; |
||||
| 20 | |||||
| 21 | /** |
||||
| 22 | * @var int |
||||
| 23 | */ |
||||
| 24 | protected $folderId; |
||||
| 25 | |||||
| 26 | /** |
||||
| 27 | * @param int $scoId |
||||
| 28 | * @param int $folderId |
||||
| 29 | */ |
||||
| 30 | public function __construct($scoId, $folderId) |
||||
| 31 | { |
||||
| 32 | $this->scoId = (int) $scoId; |
||||
| 33 | $this->folderId = (int) $folderId; |
||||
| 34 | } |
||||
| 35 | |||||
| 36 | /** |
||||
| 37 | * {@inheritdoc} |
||||
| 38 | * |
||||
| 39 | * @return bool |
||||
| 40 | */ |
||||
| 41 | protected function process() |
||||
| 42 | { |
||||
| 43 | $response = Converter::convert( |
||||
| 44 | $this->client->doGet([ |
||||
|
0 ignored issues
–
show
|
|||||
| 45 | 'action' => 'sco-move', |
||||
| 46 | 'sco-id' => $this->scoId, |
||||
| 47 | 'folder-id' => $this->folderId, |
||||
| 48 | 'session' => $this->client->getSession(), |
||||
|
0 ignored issues
–
show
The method
getSession() does not exist on Soheilrt\AdobeConnectCli...lient\Abstracts\Command.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||
| 49 | ]) |
||||
| 50 | ); |
||||
| 51 | |||||
| 52 | StatusValidate::validate($response['status']); |
||||
| 53 | |||||
| 54 | return true; |
||||
| 55 | } |
||||
| 56 | } |
||||
| 57 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.