<commit_before><?php

namespace OpenOrchestra\ModelInterface\Event;

use OpenOrchestra\ModelInterface\Model\StatusableInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Class StatusableEvent
 */
class StatusableEvent extends Event
{
    protected $statusableElement;

    /**
     * @param StatusableInterface $statusableElement
     */
    public function __construct(StatusableInterface $statusableElement)
    {
        $this->statusableElement = $statusableElement;
    }

    /**
     * @return StatusableInterface
     */
    public function getStatusableElement()
    {
        return $this->statusableElement;
    }
}<commit_msg>add from status in event to test granted<commit_after><?php

namespace OpenOrchestra\ModelInterface\Event;

use OpenOrchestra\ModelInterface\Model\StatusableInterface;
use Symfony\Component\EventDispatcher\Event;
use OpenOrchestra\ModelInterface\Model\StatusInterface;

/**
 * Class StatusableEvent
 */
class StatusableEvent extends Event
{
    protected $statusableElement;
    protected $fromStatus;

    /**
     * @param StatusableInterface $statusableElement
     */
    public function __construct(StatusableInterface $statusableElement, StatusInterface $fromStatus)
    {
        $this->statusableElement = $statusableElement;
        $this->fromStatus = $fromStatus;
    }

    /**
     * @return StatusableInterface
     */
    public function getStatusableElement()
    {
        return $this->statusableElement;
    }

    /**
     * @return StatusInterface
     */
    public function getFromStatus()
    {
        return $this->fromStatus;
    }
}
{'fraction_non_alphanumeric': 0.09254658385093167, 'fraction_numerical': 0.0, 'mean_word_length': 3.4136986301369863, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '237508', 'n_tokens_mistral': 432, 'n_tokens_neox': 430, 'n_words': 84}