Completed
Pull Request — master (#10)
by alexfloppy
07:51
created

Validators::attributeRules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace App\JsonApi\Skills;
4
5
use CloudCreativity\JsonApi\Contracts\Validators\RelationshipsValidatorInterface;
6
use CloudCreativity\LaravelJsonApi\Validators\AbstractValidatorProvider;
7
8
class Validators extends AbstractValidatorProvider
9
{
10
    /**
11
     * Get the validation rules for the resource attributes.
12
     *
13
     * @param string $resourceType
14
     *      the resource type being validated
15
     * @param object|null $record
16
     *      the record being updated, or null if it is a create request.
17
     *
18
     * @return array
19
     */
20
    protected function attributeRules($resourceType, $record = null)
21
    {
22
        return [
23
            //
24
        ];
25
    }
26
27
    /**
28
     * Define the validation rules for the resource relationships.
29
     *
30
     * @param RelationshipsValidatorInterface $relationships
31
     * @param string $resourceType
32
     *      the resource type being validated
33
     * @param object|null $record
34
     *      the record being updated, or null if it is a create request.
35
     *
36
     * @return void
37
     */
38
    protected function relationshipRules(RelationshipsValidatorInterface $relationships, $resourceType, $record = null)
39
    {
40
        //
41
    }
42
}
43