Completed
Pull Request — master (#326)
by Luc
07:31 queued 03:17
created

DeleteOrganizer   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getItemId() 0 4 1
A getPermission() 0 4 1
1
<?php
2
3
namespace CultuurNet\UDB3\Organizer\Commands;
4
5
use CultuurNet\UDB3\Offer\Commands\AuthorizableCommandInterface;
6
use CultuurNet\UDB3\Role\ValueObjects\Permission;
7
8
class DeleteOrganizer extends AbstractOrganizerCommand implements AuthorizableCommandInterface
9
{
10
    /**
11
     * @inheritdoc
12
     */
13
    public function getItemId()
14
    {
15
        return $this->getOrganizerId();
16
    }
17
18
    /**
19
     * @inheritdoc
20
     */
21
    public function getPermission()
22
    {
23
        return Permission::ORGANISATIES_BEHEREN();
24
    }
25
}
26