Spaces:
No application file
No application file
Download plugins/MauticFocusBundle/Event/FocusEvent.php from chrisbryan17/mautic: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/spaces/chrisbryan17/mautic/resolve/main/plugins/MauticFocusBundle/Event/FocusEvent.php
- Command line
-
hf download hf://spaces/chrisbryan17/mautic/plugins/MauticFocusBundle/Event/FocusEvent.php
-
curl -L -o FocusEvent.php https://huggingface.co/spaces/chrisbryan17/mautic/resolve/main/plugins/MauticFocusBundle/Event/FocusEvent.php
665 Bytes
| namespace MauticPlugin\MauticFocusBundle\Event; | |
| use Mautic\CoreBundle\Event\CommonEvent; | |
| use MauticPlugin\MauticFocusBundle\Entity\Focus; | |
| class FocusEvent extends CommonEvent | |
| { | |
| /** | |
| * @param bool|false $isNew | |
| */ | |
| public function __construct(Focus $focus, $isNew = false) | |
| { | |
| $this->entity = $focus; | |
| $this->isNew = $isNew; | |
| } | |
| /** | |
| * Returns the Focus entity. | |
| * | |
| * @return Focus | |
| */ | |
| public function getFocus() | |
| { | |
| return $this->entity; | |
| } | |
| /** | |
| * Sets the Focus entity. | |
| */ | |
| public function setFocus(Focus $focus): void | |
| { | |
| $this->entity = $focus; | |
| } | |
| } | |