src/PayPalRestApiClient/Builder/LinkBuilder.php
public function build(array $data)
    {
        $this->validateArrayKeys(
            array('href', 'rel', 'method'),
            $data
        );

        $link = new Link(
            $data['href'],
            $data['rel'],
            $data['method']
        );

        return $link;
    }
public function build(array $data)
    {
        $this->validateArrayKeys(
            array('href', 'rel', 'method'),
            $data
        );

        $link = new Link(
            $data['href'],
            $data['rel'],
            $data['method']
        );

        return $link;
    }
Build an instance of PayPalRestApiClient\Model\Link given an array

@param array $data The array should contains the following keys:
href, rel, method.

@return PayPalRestApiClient\Model\Link

@throws PayPalRestApiClient\Exception\BuilderException

@see https://developer.paypal.com/docs/api/#hateoas-links