~ubuntu-branches/ubuntu/utopic/php-doctrine-common/utopic

« back to all changes in this revision

Viewing changes to tests/Doctrine/Tests/Common/Proxy/MagicWakeupClass.php

  • Committer: Package Import Robot
  • Author(s): David Prévot
  • Date: 2014-06-15 11:26:00 UTC
  • mfrom: (2.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20140615112600-sg4mgpwq9sfg4mre
Tags: 2.4.2-2
* Upload to unstable
* No tests if DEB_BUILD_OPTIONS contains nocheck

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
namespace Doctrine\Tests\Common\Proxy;
 
4
 
 
5
/**
 
6
 * Test asset class
 
7
 */
 
8
class MagicWakeupClass
 
9
{
 
10
    /**
 
11
     * @var string
 
12
     */
 
13
    public $id = 'id';
 
14
 
 
15
    /**
 
16
     * @var string
 
17
     */
 
18
    public $publicField = 'publicField';
 
19
 
 
20
    /**
 
21
     * @var string
 
22
     */
 
23
    public $wakeupValue = 'defaultValue';
 
24
 
 
25
    /**
 
26
     * @return void
 
27
     */
 
28
    public function __wakeup()
 
29
    {
 
30
        $this->wakeupValue = 'newWakeupValue';
 
31
    }
 
32
}