for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Go! AOP framework
*
* @copyright Copyright 2012, Lisachenko Alexander <[email protected]>
* This source file is subject to the license that is bundled
* with this source code in the file LICENSE.
*/
namespace Demo\Aspect\Introduce;
/**
* Example class to test aspects
trait SerializableImpl
{
* String representation of object
* @return string the string representation of the object or null
public function serialize()
return serialize(get_object_vars($this));
}
* Constructs the object
* @param string $serialized <p>
* The string representation of the object.
* </p>
* @return mixed the original value unserialized.
public function unserialize($serialized)
$data = unserialize($serialized);
foreach ($data as $key=>$value) {
$this->$key = $value;