UserPostMessage   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 8 2
1
<?php
2
declare(strict_types=1);
3
4
namespace Yproximite\Api\Message\User;
5
6
use Yproximite\Api\Exception\LogicException;
7
8
/**
9
 * Class UserPostMessage
10
 */
11
class UserPostMessage extends AbstractUserMessage
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function build()
17
    {
18
        if (is_null($this->getPlainPassword())) {
19
            throw new LogicException('The plain password should be not null.');
20
        }
21
22
        return parent::build();
23
    }
24
}
25