for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace gossi\formatter\events;
use gossi\formatter\entities\Group;
use phootwork\tokenizer\Token;
class GroupEvent extends TokenEvent {
/** @var Group */
private $group;
public function __construct(Token $token, Group $group) {
parent::__construct($token);
$this->group = $group;
}
public function getName() {
return 'context.group_' . ($this->group->end === null ? 'enter' : 'leave');
/**
* Returns the associated group
*
* @return Group
*/
public function getGroup() {
return $this->group;