| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | class AlreadySharedException extends GenericShareException { |
||
| 32 | /** @var IShare */ |
||
| 33 | private $existingShare; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @since 22.0.0 |
||
| 37 | */ |
||
| 38 | public function __construct(string $message, IShare $existingShare) { |
||
| 39 | parent::__construct($message); |
||
| 40 | |||
| 41 | $this->existingShare = $existingShare; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @since 22.0.0 |
||
| 46 | */ |
||
| 47 | public function getExistingShare(): IShare { |
||
| 49 | } |
||
| 50 | } |
||
| 51 |