This repository has been archived by the owner on Jan 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-24711: Added common base for PolicyCreateStruct / PolicyUpdateStruct
- Loading branch information
Showing
3 changed files
with
31 additions
and
33 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 | ||
/** | ||
* This file is part of the eZ Publish Kernel package. | ||
* | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
* @version //autogentag// | ||
*/ | ||
|
||
namespace eZ\Publish\API\Repository\Values\User; | ||
|
||
use eZ\Publish\API\Repository\Values\ValueObject; | ||
|
||
abstract class PolicyStruct extends ValueObject | ||
{ | ||
/** | ||
* Returns list of limitations added to policy. | ||
* | ||
* @return \eZ\Publish\API\Repository\Values\User\Limitation[] | ||
*/ | ||
abstract public function getLimitations(); | ||
|
||
/** | ||
* Adds a limitation with the given identifier and list of values. | ||
* | ||
* @param Limitation $limitation | ||
*/ | ||
abstract public function addLimitation( Limitation $limitation ); | ||
} |
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