public function fromResource($object, ResourceObject $resource)
    {
        $context = $this->createContext(get_class($object));

        $this->identifierHandler->setIdentifier($object, $resource->getId(), $context);

        foreach ($this->handlers as $handler)
        {
            $handler->fromResource($object, $resource, $context);
        }
    }
public function fromResource($object, ResourceObject $resource)
    {
        $context = $this->createContext(get_class($object));

        $this->identifierHandler->setIdentifier($object, $resource->getId(), $context);

        foreach ($this->handlers as $handler)
        {
            $handler->fromResource($object, $resource, $context);
        }
    }
public function fromResource ( $ object , ResourceObject $ resource ) { $ context = $ this -> createContext ( get_class ( $ object ) ) ; $ this -> identifierHandler -> setIdentifier ( $ object , $ resource -> getId ( ) , $ context ) ; foreach ( $ this -> handlers as $ handler ) { $ handler -> fromResource ( $ object , $ resource , $ context ) ; } }
Map resource's data to provided object

@param mixed $object
@param ResourceObject $resource
Map resource s data to provided object