AppointmentsPreferencesCertain   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 20
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRessourceName() 0 3 1
A getMandatoryFields() 0 4 1
A setRessourceCalled() 0 8 1
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
}