PreInsertUpdateEventArgs.php 645 Bytes
Newer Older
1 2 3 4 5 6 7
<?php

namespace Doctrine\ORM\Event;

use Doctrine\Common\EventArgs;

/**
8
 * Class that holds event arguments for a preInsert/preUpdate event.
9 10 11 12
 *
 * @author Roman Borschel <roman@code-factory.org>
 * @since 2.0
 */
13
class PreInsertUpdateEventArgs extends EventArgs
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
{
    private $_entity;
    private $_entityChangeSet;

    public function __construct($entity, array $changeSet)
    {
        $this->_entity = $entity;
        $this->_entityChangeSet = $changeSet;
    }

    public function getEntity()
    {
        return $this->_entity;
    }
    
    public function getEntityChangeSet()
    {
    	return $this->_entityChangeSet;
    }
}