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

32 lines
595 B
PHP
Raw Normal View History

2012-07-30 02:10:33 +04:00
<?php
namespace Doctrine\Tests\Models\Company;
class ContractSubscriber
{
static public $prePersistCalls;
static public $postPersisCalls;
static public $instances;
public function __construct()
{
self::$instances[] = $this;
}
/**
* @PostPersist
*/
2012-07-30 04:46:38 +04:00
public function postPersistHandler(CompanyContract $contract)
2012-07-30 02:10:33 +04:00
{
self::$postPersisCalls[] = func_get_args();
}
/**
* @PrePersist
*/
2012-07-30 04:46:38 +04:00
public function prePersistHandler(CompanyContract $contract)
2012-07-30 02:10:33 +04:00
{
self::$prePersistCalls[] = func_get_args();
}
}