ClassHelper.php
public static function instance($object)
    {
        if (!is_object($object)) {
            throw new \InvalidArgumentException('Only objects are allowed to be passed to the helper.');
        }

        $response = new self();
        $response->origin = $object;
        $response->target = new ReflectionClass($object);
        return $response;
    }
public static function instance($object)
    {
        if (!is_object($object)) {
            throw new \InvalidArgumentException('Only objects are allowed to be passed to the helper.');
        }

        $response = new self();
        $response->origin = $object;
        $response->target = new ReflectionClass($object);
        return $response;
    }
public static function instance ( $ object ) { if ( ! is_object ( $ object ) ) { throw new \ InvalidArgumentException ( 'Only objects are allowed to be passed to the helper.' ) ; } $ response = new self ( ) ; $ response -> origin = $ object ; $ response -> target = new ReflectionClass ( $ object ) ; return $ response ; }
Creates and returns the wrapper.
Only objects are allowed to be passed, else an exception will be thrown.
Store the input object to the created wrapper.

@param $object

@return Helper
Creates and returns the wrapper . Only objects are allowed to be passed else an exception will be thrown . Store the input object to the created wrapper .