1
0
mirror of synced 2025-03-06 12:56:10 +03:00
doctrine2/tests/Doctrine/Tests/Models/Company/FlexUltraContractSubscriber.php

33 lines
664 B
PHP
Raw Normal View History

2012-07-29 21:46:38 -03: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-29 22:03:29 -03:00
public function prePersistHandler1(CompanyContract $contract, LifecycleEventArgs $args)
2012-07-29 21:46:38 -03:00
{
2012-07-29 22:03:29 -03:00
self::$prePersistCalls[] = func_get_args();
2012-07-29 21:46:38 -03:00
}
/**
* @PrePersist
*/
2012-07-29 22:03:29 -03:00
public function prePersistHandler2(CompanyContract $contract, LifecycleEventArgs $args)
2012-07-29 21:46:38 -03:00
{
2012-07-29 22:03:29 -03:00
self::$prePersistCalls[] = func_get_args();
2012-07-29 21:46:38 -03:00
}
}