Code Coverage  | 
      ||||||||||
Lines  | 
       Functions and Methods  | 
       Classes and Traits  | 
      ||||||||
| Total |         | 
       50.00%  | 
       3 / 6  | 
               | 
       25.00%  | 
       1 / 4  | 
       CRAP |         | 
       0.00%  | 
       0 / 1  | 
      
| CopyCommand |         | 
       50.00%  | 
       3 / 6  | 
               | 
       25.00%  | 
       1 / 4  | 
       6.00 |         | 
       0.00%  | 
       0 / 1  | 
      
| __construct |         | 
       100.00%  | 
       3 / 3  | 
               | 
       100.00%  | 
       1 / 1  | 
       1 | |||
| getSourceUri |         | 
       0.00%  | 
       0 / 1  | 
               | 
       0.00%  | 
       0 / 1  | 
       2 | |||
| getDestinationUri |         | 
       0.00%  | 
       0 / 1  | 
               | 
       0.00%  | 
       0 / 1  | 
       2 | |||
| getLanguage |         | 
       0.00%  | 
       0 / 1  | 
               | 
       0.00%  | 
       0 / 1  | 
       2 | |||
| 1 | <?php | 
| 2 | |
| 3 | /** | 
| 4 | * This program is free software; you can redistribute it and/or | 
| 5 | * modify it under the terms of the GNU General Public License | 
| 6 | * as published by the Free Software Foundation; under version 2 | 
| 7 | * of the License (non-upgradable). | 
| 8 | * | 
| 9 | * This program is distributed in the hope that it will be useful, | 
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 
| 12 | * GNU General Public License for more details. | 
| 13 | * | 
| 14 | * You should have received a copy of the GNU General Public License | 
| 15 | * along with this program; if not, write to the Free Software | 
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 
| 17 | * | 
| 18 | * Copyright (c) 2022 (original work) Open Assessment Technologies SA. | 
| 19 | */ | 
| 20 | |
| 21 | namespace oat\taoMediaManager\model\sharedStimulus; | 
| 22 | |
| 23 | class CopyCommand | 
| 24 | { | 
| 25 | /** @var string */ | 
| 26 | private $sourceUri; | 
| 27 | |
| 28 | /** @var string */ | 
| 29 | private $destinationUri; | 
| 30 | |
| 31 | /** @var string */ | 
| 32 | private $language; | 
| 33 | |
| 34 | public function __construct( | 
| 35 | string $sourceUri, | 
| 36 | string $destinationUri, | 
| 37 | string $language | 
| 38 | ) { | 
| 39 | $this->sourceUri = $sourceUri; | 
| 40 | $this->destinationUri = $destinationUri; | 
| 41 | $this->language = $language; | 
| 42 | } | 
| 43 | |
| 44 | /** | 
| 45 | * @return string | 
| 46 | */ | 
| 47 | public function getSourceUri(): string | 
| 48 | { | 
| 49 | return $this->sourceUri; | 
| 50 | } | 
| 51 | |
| 52 | /** | 
| 53 | * @return string | 
| 54 | */ | 
| 55 | public function getDestinationUri(): string | 
| 56 | { | 
| 57 | return $this->destinationUri; | 
| 58 | } | 
| 59 | |
| 60 | /** | 
| 61 | * @return string | 
| 62 | */ | 
| 63 | public function getLanguage(): string | 
| 64 | { | 
| 65 | return $this->language; | 
| 66 | } | 
| 67 | } |