<commit_before><?php
/**
 * @package     Mautic
 * @copyright   2014 Mautic, NP. All rights reserved.
 * @author      Mautic
 * @link        http://mautic.com
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

namespace Mautic\PointBundle\Event;

use Mautic\CoreBundle\Event\CommonEvent;
use Mautic\PointBundle\Entity\Trigger;

/**
 * Class TriggerEvent
 */
class TriggerEvent extends CommonEvent
{

    /**
     * @var Trigger
     */
    private $entity;

    /**
     * @var bool
     */
    private $isNew;

    /**
     * @param Trigger $trigger
     * @param bool    $isNew
     */
    public function __construct(Trigger &$trigger, $isNew = false)
    {
        $this->entity =& $trigger;
        $this->isNew  = $isNew;
    }

    /**
     * Returns the Trigger entity
     *
     * @return Trigger
     */
    public function getTrigger()
    {
        return $this->entity;
    }

    /**
     * Sets the Trigger entity
     *
     * @param Trigger $trigger
     */
    public function setTrigger(Trigger $trigger)
    {
        $this->entity = $trigger;
    }
}
<commit_msg>Point trigger event: Save error fixed - protected instead of private vars<commit_after><?php
/**
 * @package     Mautic
 * @copyright   2014 Mautic, NP. All rights reserved.
 * @author      Mautic
 * @link        http://mautic.com
 * @license     GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */

namespace Mautic\PointBundle\Event;

use Mautic\CoreBundle\Event\CommonEvent;
use Mautic\PointBundle\Entity\Trigger;

/**
 * Class TriggerEvent
 */
class TriggerEvent extends CommonEvent
{

    /**
     * @var Trigger
     */
    protected $entity;

    /**
     * @var bool
     */
    protected $isNew;

    /**
     * @param Trigger $trigger
     * @param bool    $isNew
     */
    public function __construct(Trigger &$trigger, $isNew = false)
    {
        $this->entity =& $trigger;
        $this->isNew  = $isNew;
    }

    /**
     * Returns the Trigger entity
     *
     * @return Trigger
     */
    public function getTrigger()
    {
        return $this->entity;
    }

    /**
     * Sets the Trigger entity
     *
     * @param Trigger $trigger
     */
    public function setTrigger(Trigger $trigger)
    {
        $this->entity = $trigger;
    }
}

{'fraction_non_alphanumeric': 0.12917398945518455, 'fraction_numerical': 0.006151142355008787, 'mean_word_length': 2.0, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4034041', 'n_tokens_mistral': 747, 'n_tokens_neox': 726, 'n_words': 164}