AppointmentsPreferencesCertain::getRessourceName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Wabel\CertainAPI\Ressources;
3
4
use Wabel\CertainAPI\Interfaces\CertainRessourceInterface;
5
use Wabel\CertainAPI\CertainRessourceAbstract;
6
7
/**
8
 * AppointementsPreferencesCertain about the Preferences entity
9
 *
10
 * @author rbergina
11
 */
12
class AppointmentsPreferencesCertain extends CertainRessourceAbstract implements CertainRessourceInterface
13
{
14
    public function getRessourceName(){
15
        return 'AppointmentsPreferences';
16
    }
17
18
    public function getMandatoryFields()
19
    {
20
        return array('attendeeTypeCode','regCode','rank','blacklist');
21
    }
22
23
    public function setRessourceCalled($eventCode,$regCode){
24
        return $this->createRessourceCalled([
25
            'events' => $eventCode,
26
            'registration' => $regCode,
27
            'preferences' => ''
28
        ]);
29
        
30
    }
31
}