for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Copyright (c) Nate Brunette.
* Distributed under the MIT License (http://opensource.org/licenses/MIT)
*/
namespace Tebru\Gson\Internal\ObjectConstructor;
use Tebru\Gson\Internal\ObjectConstructor;
/**
* Class CreateFromInstance
*
* @author Nate Brunette <[email protected]>
class CreateFromInstance implements ObjectConstructor
{
* The already instantiated object
* @var object
private $object;
* Constructor
* @param object $object
public function __construct($object)
$this->object = $object;
}
* Returns the instantiated object
* @return mixed
object
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
public function construct()
return $this->object;
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.