Scalr\Api\Rest\Controller\ApiController::result PHP 메소드

result() 공개 메소드

Gets result envelope for the response
public result ( mixed $data ) : Scalr\Api\DataType\ResultEnvelope
$data mixed The response data
리턴 Scalr\Api\DataType\ResultEnvelope Returns result envelope object depends on specified data
    public function result($data)
    {
        $envelope = new ResultEnvelope();
        $envelope->data = $data;
        return $envelope;
    }