forked from ezsystems/ezpublish-api
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-29997: Exposed information about removed content items in EmptyTr…
…ashSignal and DeleteTrashItemSignal (#2520) * EZP-29997: Expose information about removed content items in EmptyTrashSignal and DeleteTrashItemSignal * EZP-29997: Fix and update unit tests * EZP-29997: Made changes according to code review * Fixed unit tests
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
namespace eZ\Publish\API\Repository\Values\Content\Trash; | ||
|
||
use eZ\Publish\API\Repository\Values\ValueObject; | ||
|
||
class TrashItemDeleteResult extends ValueObject | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
public $trashItemId; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public $contentId; | ||
|
||
/** | ||
* Flag indicating content was removed. | ||
* | ||
* @var bool | ||
*/ | ||
public $contentRemoved = false; | ||
} |
25 changes: 25 additions & 0 deletions
25
Repository/Values/Content/Trash/TrashItemDeleteResultList.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
namespace eZ\Publish\API\Repository\Values\Content\Trash; | ||
|
||
use eZ\Publish\API\Repository\Values\ValueObject; | ||
|
||
class TrashItemDeleteResultList extends ValueObject implements \IteratorAggregate | ||
{ | ||
/** | ||
* @var \eZ\Publish\API\Repository\Values\Content\Trash\TrashItemDeleteResult[] | ||
*/ | ||
public $items = []; | ||
|
||
/** | ||
* @return \ArrayIterator | ||
*/ | ||
public function getIterator() | ||
{ | ||
return new \ArrayIterator($this->items); | ||
} | ||
} |