aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/JsonApi/Schemas/Studip.php
blob: a545504331db2c9960a1e27f71ad245e2cf99960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace JsonApi\Schemas;

use Neomerx\JsonApi\Contracts\Schema\ContextInterface;

class Studip extends SchemaProvider
{
    const TYPE = 'global';

    public function getId($resource): ?string
    {
        return $resource->getId();
    }

    /**
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
     */
    public function getAttributes($news, ContextInterface $context): iterable
    {
        return [];
    }

    public function getRelationships($user, ContextInterface $context): iterable
    {
        return [];
    }
}