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

34 lines
702 B
PHP
Raw Normal View History

2012-07-30 04:46:38 +04:00
<?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();
}
}