Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 282 Bytes

Link.md

File metadata and controls

22 lines (16 loc) · 282 Bytes

Link

<?php

use Chubbyphp\Serialization\Link\Link;

$link = new Link(
    '/api/model',
    ['model'],
    ['method' => 'GET']
);

echo $link->getHref();
// '/api/model'

print_r($link->getRels());
// ['model']

print_r($link->getAttributes());
// ['method' => 'GET']