<commit_before><?php
/**
 * PeristenceListener.php - (http://zucchi.co.uk) 
 *
 * @link      http://github.com/zucchi/{PROJECT_NAME} for the canonical source repository
 * @copyright Copyright (c) 2005-2013 Zucchi Limited. (http://zucchi.co.uk)
 * @license   http://zucchi.co.uk/legals/bsd-license New BSD License
 */

namespace ZucchiModel\Persistence;

/**
 * PeristenceListener
 *
 * Description of class
 *
 * @author <NAME> <<EMAIL>>
 * @package ZucchiModel\Persistence
 * @subpackage 
 * @category 
 */
class PersistenceListener
{
    /**
     * Attach listeners
     *
     * @param  EventManagerInterface $events
     * @return void
     */
    public function attach(EventManagerInterface $events)
    {
        $this->listeners = array(
            $events->attach('prePersist', array($this, 'prePersist')),
            $events->attach('postPersist', array($this, 'postPersist')),
        );
    }
<commit_msg>Add missing listeners property to PersistenceListener.<commit_after><?php
/**
 * PeristenceListener.php - (http://zucchi.co.uk) 
 *
 * @link      http://github.com/zucchi/{PROJECT_NAME} for the canonical source repository
 * @copyright Copyright (c) 2005-2013 Zucchi Limited. (http://zucchi.co.uk)
 * @license   http://zucchi.co.uk/legals/bsd-license New BSD License
 */

namespace ZucchiModel\Persistence;

/**
 * PeristenceListener
 *
 * Description of class
 *
 * @author <NAME> <<EMAIL>>
 * @package ZucchiModel\Persistence
 * @subpackage 
 * @category 
 */
class PersistenceListener
{
    /**
     * List of attached events.
     *
     * @var array
     */
    protected $listeners = array();

    /**
     * Attach listeners
     *
     * @param  EventManagerInterface $events
     * @return void
     */
    public function attach(EventManagerInterface $events)
    {
        $this->listeners = array(
            $events->attach('prePersist', array($this, 'prePersist')),
            $events->attach('postPersist', array($this, 'postPersist')),
        );
    }

{'fraction_non_alphanumeric': 0.143646408839779, 'fraction_numerical': 0.00803616273229533, 'mean_word_length': 2.890625, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '4621564', 'n_tokens_mistral': 631, 'n_tokens_neox': 609, 'n_words': 126}