src/Represent/Builder/GenericRepresentationBuilder.php
protected function handleObject($object, $view)
    {
        $check = $this->trackObjectVisits($object);

        if ($check instanceof \stdClass) {

            return $check;
        } else {
            $output = new \stdClass();
            $output->_hash = $check;
        }

        $reflection   = new \ReflectionClass($object);
        $classContext = $this->classBuilder->buildClassContext($reflection, $check, $view);

        foreach ($classContext->properties as $property) {
            $output = $this->handleProperty($property, $classContext, $object, $output);
        }

        return $output;
    }
protected function handleObject($object, $view)
    {
        $check = $this->trackObjectVisits($object);

        if ($check instanceof \stdClass) {

            return $check;
        } else {
            $output = new \stdClass();
            $output->_hash = $check;
        }

        $reflection   = new \ReflectionClass($object);
        $classContext = $this->classBuilder->buildClassContext($reflection, $check, $view);

        foreach ($classContext->properties as $property) {
            $output = $this->handleProperty($property, $classContext, $object, $output);
        }

        return $output;
    }
protected function handleObject ( $ object , $ view ) { $ check = $ this -> trackObjectVisits ( $ object ) ; if ( $ check instanceof \ stdClass ) { return $ check ; } else { $ output = new \ stdClass ( ) ; $ output -> _hash = $ check ; } $ reflection = new \ ReflectionClass ( $ object ) ; $ classContext = $ this -> classBuilder -> buildClassContext ( $ reflection , $ check , $ view ) ; foreach ( $ classContext -> properties as $ property ) { $ output = $ this -> handleProperty ( $ property , $ classContext , $ object , $ output ) ; } return $ output ; }
Used to handle representing objects
@param $object
@param $view
@return \stdClass
Used to handle representing objects