Passed
Push — master ( f2bee3...d16bab )
by Anton
03:49
created

src/ResourceInterface.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * @author Anton Tuyakhov <[email protected]>
4
 */
5
6
namespace tuyakhov\jsonapi;
7
8
/**
9
 * Interface for a “resource object” that represent an individual resource.
10
 */
11
interface ResourceInterface extends ResourceIdentifierInterface
12
{
13
    /**
14
     * The "attributes" member of the resource object representing some of the resource’s data.
15
     * @param array $fields specific fields that a client has requested.
16
     * @return array an array of attributes that represent information about the resource object in which it’s defined.
17
     */
18
    public function getResourceAttributes(array $fields = []);
19
20
    /**
21
     * The "relationships" member of the resource object describing relationships between the resource and other JSON API resources.
22
     * @return ResourceIdentifierInterface[] represent references from the resource object in which it’s defined to other resource objects.
23
     */
24
    public function getResourceRelationships();
25
26
    public function setResourceRelationship($name, $relationship);
27
28
}
0 ignored issues
show
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
29