for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Chrl\AppBundle\Type;
abstract class Type implements TypeInterface
{
/**
* @param \stdClass $obj
*/
public function __construct(\stdClass $obj = null)
if ($obj instanceof \stdClass) {
$this->loadResult($obj);
}
public function loadResult(\stdClass $obj)
foreach ($obj as $key => $value) {
$obj
object<stdClass>
$this->$key = $value;