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

33 lines
664 B
PHP

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