-
-
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 CreateDemandObjectFromSettingsEvent #2567
- Loading branch information
1 parent
33cb657
commit c11b015
Showing
4 changed files
with
59 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,47 @@ | ||
<?php | ||
declare(strict_types=1); | ||
/* | ||
* 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\Dto\NewsDemand; | ||
|
||
final class CreateDemandObjectFromSettingsEvent | ||
{ | ||
protected NewsDemand $demand; | ||
protected array $settings; | ||
protected string $class; | ||
|
||
public function __construct(NewsDemand $demand, array $settings, string $class = '') | ||
{ | ||
$this->demand = $demand; | ||
$this->settings = $settings; | ||
$this->class = $class; | ||
} | ||
|
||
public function getDemand(): NewsDemand | ||
{ | ||
return $this->demand; | ||
} | ||
|
||
public function getSettings(): array | ||
{ | ||
return $this->settings; | ||
} | ||
|
||
public function getClass(): string | ||
{ | ||
return $this->class; | ||
} | ||
|
||
public function setDemand(NewsDemand $demand): void | ||
{ | ||
$this->demand = $demand; | ||
} | ||
|
||
} |
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