src/ServiceRuntime/Internal/XmlGoalStateDeserializer.php
public function deserialize($document)
    {
        $goalStateInfo = Utilities::unserialize($document);

        return new GoalState(
            $goalStateInfo['Incarnation'],
            $goalStateInfo['ExpectedState'],
            $goalStateInfo['RoleEnvironmentPath'],
            new \DateTime($goalStateInfo['Deadline']),
            $goalStateInfo['CurrentStateEndpoint']
        );
    }
public function deserialize($document)
    {
        $goalStateInfo = Utilities::unserialize($document);

        return new GoalState(
            $goalStateInfo['Incarnation'],
            $goalStateInfo['ExpectedState'],
            $goalStateInfo['RoleEnvironmentPath'],
            new \DateTime($goalStateInfo['Deadline']),
            $goalStateInfo['CurrentStateEndpoint']
        );
    }
public function deserialize ( $ document ) { $ goalStateInfo = Utilities :: unserialize ( $ document ) ; return new GoalState ( $ goalStateInfo [ 'Incarnation' ] , $ goalStateInfo [ 'ExpectedState' ] , $ goalStateInfo [ 'RoleEnvironmentPath' ] , new \ DateTime ( $ goalStateInfo [ 'Deadline' ] ) , $ goalStateInfo [ 'CurrentStateEndpoint' ] ) ; }
Deserializes a goal state.

@param string $document The goal state document

@return GoalState
Deserializes a goal state .