public function transform($context)
    {
        $classIdParts = explode('\\', get_class($context));
        $option = [
            'id' => $context->id,
            'teamId' => $context->team->id,
            'teamName' => $context->team->name,
            'contextType' => array_pop($classIdParts),
            'role' => $context->role,
            'status' => $context->status,
        ];
        return $option;
    }
public function transform($context)
    {
        $classIdParts = explode('\\', get_class($context));
        $option = [
            'id' => $context->id,
            'teamId' => $context->team->id,
            'teamName' => $context->team->name,
            'contextType' => array_pop($classIdParts),
            'role' => $context->role,
            'status' => $context->status,
        ];
        return $option;
    }
public function transform ( $ context ) { $ classIdParts = explode ( '\\' , get_class ( $ context ) ) ; $ option = [ 'id' => $ context -> id , 'teamId' => $ context -> team -> id , 'teamName' => $ context -> team -> name , 'contextType' => array_pop ( $ classIdParts ) , 'role' => $ context -> role , 'status' => $ context -> status , ] ; return $ option ; }
Transformer to generate JSON response with Member data used as team app context

@param \V8CH\Combine\Member\Models\Member
@return array
Transformer to generate JSON response with Member data used as team app context