| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 84.62% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class TranslateScopeEvent extends Event |
||
| 16 | { |
||
| 17 | /** @var string */ |
||
| 18 | private $scope; |
||
| 19 | |||
| 20 | /** @var string */ |
||
| 21 | private $translation; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * TranslateScopeEvent constructor. |
||
| 25 | * @param string $scope |
||
| 26 | */ |
||
| 27 | 2 | public function __construct($scope) |
|
| 28 | { |
||
| 29 | 2 | $this->scope = $scope; |
|
| 30 | 2 | $this->translation = null; |
|
| 31 | 2 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 2 | public function getScope() |
|
| 37 | { |
||
| 38 | 2 | return $this->scope; |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 2 | public function getTranslation() |
|
| 45 | { |
||
| 46 | 2 | return $this->translation; |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $translation |
||
| 51 | * @return TranslateScopeEvent |
||
| 52 | */ |
||
| 53 | 1 | public function setTranslation($translation) |
|
| 54 | { |
||
| 55 | 1 | $this->translation = $translation; |
|
| 56 | |||
| 57 | 1 | return $this; |
|
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return bool |
||
| 62 | */ |
||
| 63 | public function isTranslated() |
||
| 66 | } |
||
| 67 | } |
||
| 68 |