Skip to content

Commit

Permalink
feat: new ticket events
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino committed Dec 25, 2024
1 parent 552aff0 commit 9f03a91
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/Event/PreTicketNoShowEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Novo SGA project.
*
* (c) Rogerio Lino <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Novosga\Event;

use Novosga\Entity\AtendimentoInterface;
use Novosga\Entity\UsuarioInterface;

/**
* PreTicketNoShowEvent
*
* @author Rogerio Lino <[email protected]>
*/
final readonly class PreTicketNoShowEvent
{
public function __construct(
public AtendimentoInterface $atendimento,
public UsuarioInterface $usuario,
) {
}
}
31 changes: 31 additions & 0 deletions src/Event/PreTicketStartEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Novo SGA project.
*
* (c) Rogerio Lino <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Novosga\Event;

use Novosga\Entity\AtendimentoInterface;
use Novosga\Entity\UsuarioInterface;

/**
* PreTicketStartEvent
*
* @author Rogerio Lino <[email protected]>
*/
final readonly class PreTicketStartEvent
{
public function __construct(
public AtendimentoInterface $atendimento,
public UsuarioInterface $usuario,
) {
}
}
31 changes: 31 additions & 0 deletions src/Event/TicketNoShowEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Novo SGA project.
*
* (c) Rogerio Lino <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Novosga\Event;

use Novosga\Entity\AtendimentoInterface;
use Novosga\Entity\UsuarioInterface;

/**
* TicketNoShowEvent
*
* @author Rogerio Lino <[email protected]>
*/
final readonly class TicketNoShowEvent
{
public function __construct(
public AtendimentoInterface $atendimento,
public UsuarioInterface $usuario,
) {
}
}
31 changes: 31 additions & 0 deletions src/Event/TicketStartEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

/*
* This file is part of the Novo SGA project.
*
* (c) Rogerio Lino <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Novosga\Event;

use Novosga\Entity\AtendimentoInterface;
use Novosga\Entity\UsuarioInterface;

/**
* TicketStartEvent
*
* @author Rogerio Lino <[email protected]>
*/
final readonly class TicketStartEvent
{
public function __construct(
public AtendimentoInterface $atendimento,
public UsuarioInterface $usuario,
) {
}
}

0 comments on commit 9f03a91

Please sign in to comment.