-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Provide event ModifyDemandRepositoryEvent #2568
- Loading branch information
1 parent
01dfbda
commit caf0de5
Showing
5 changed files
with
101 additions
and
41 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,60 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the "news" Extension for TYPO3 CMS. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE.txt file that was distributed with this source code. | ||
*/ | ||
|
||
namespace GeorgRinger\News\Event; | ||
|
||
use GeorgRinger\News\Domain\Model\DemandInterface; | ||
use TYPO3\CMS\Extbase\Persistence\QueryInterface; | ||
|
||
final class ModifyDemandRepositoryEvent | ||
{ | ||
|
||
private DemandInterface $demand; | ||
private bool $respectEnableFields; | ||
private QueryInterface $query; | ||
private array $constraints; | ||
|
||
public function __construct(DemandInterface $demand, bool $respectEnableFields, QueryInterface $query, array $constraints) | ||
{ | ||
$this->demand = $demand; | ||
$this->respectEnableFields = $respectEnableFields; | ||
$this->query = $query; | ||
$this->constraints = $constraints; | ||
} | ||
|
||
public function getDemand(): DemandInterface | ||
{ | ||
return $this->demand; | ||
} | ||
|
||
public function isRespectEnableFields(): bool | ||
{ | ||
return $this->respectEnableFields; | ||
} | ||
|
||
public function getQuery(): QueryInterface | ||
{ | ||
return $this->query; | ||
} | ||
|
||
public function getConstraints(): array | ||
{ | ||
return $this->constraints; | ||
} | ||
|
||
public function setRespectEnableFields(bool $respectEnableFields): void | ||
{ | ||
$this->respectEnableFields = $respectEnableFields; | ||
} | ||
|
||
public function setConstraints(array $constraints): void | ||
{ | ||
$this->constraints = $constraints; | ||
} | ||
} |
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
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