1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/tests/Doctrine/Tests/Models/Company/FlexUltraContractSubscriber.php

33 lines
664 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 $instances;
public function __construct()
{
self::$instances[] = $this;
}
/**
* @PrePersist
*/
2012-07-30 05:03:29 +04:00
public function prePersistHandler1(CompanyContract $contract, LifecycleEventArgs $args)
2012-07-30 04:46:38 +04:00
{
2012-07-30 05:03:29 +04:00
self::$prePersistCalls[] = func_get_args();
2012-07-30 04:46:38 +04:00
}
/**
* @PrePersist
*/
2012-07-30 05:03:29 +04:00
public function prePersistHandler2(CompanyContract $contract, LifecycleEventArgs $args)
2012-07-30 04:46:38 +04:00
{
2012-07-30 05:03:29 +04:00
self::$prePersistCalls[] = func_get_args();
2012-07-30 04:46:38 +04:00
}
}