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

32 lines
595 B
PHP

<?php
namespace Doctrine\Tests\Models\Company;
class ContractSubscriber
{
static public $prePersistCalls;
static public $postPersisCalls;
static public $instances;
public function __construct()
{
self::$instances[] = $this;
}
/**
* @PostPersist
*/
public function postPersistHandler(CompanyContract $contract)
{
self::$postPersisCalls[] = func_get_args();
}
/**
* @PrePersist
*/
public function prePersistHandler(CompanyContract $contract)
{
self::$prePersistCalls[] = func_get_args();
}
}