1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/Doctrine/Tests/Models/Company/FlexUltraContractSubscriber.php
2013-01-29 12:14:51 -02:00

34 lines
702 B
PHP

<?php
namespace Doctrine\Tests\Models\Company;
use Doctrine\ORM\Event\LifecycleEventArgs;
class FlexUltraContractSubscriber
{
static public $prePersistCalls;
static public $postPersisCalls;
static public $instances;
public function __construct()
{
self::$instances[] = $this;
}
/**
* @PrePersist
*/
public function postPersistHandler1(CompanyContract $contract, LifecycleEventArgs $args)
{
self::$postPersisCalls[] = func_get_args();
}
/**
* @PrePersist
*/
public function postPersistHandler2(CompanyContract $contract, LifecycleEventArgs $args)
{
self::$postPersisCalls[] = func_get_args();
}
}