AccountNoEmailException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessageData() 0 4 1
A getMessageKey() 0 6 1
1
<?php
2
3
namespace DoS\UserBundle\OAuth;
4
5
use HWI\Bundle\OAuthBundle\Security\Core\Exception\AccountNotLinkedException;
6
7
class AccountNoEmailException extends AccountNotLinkedException
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12
    public function getMessageKey()
13
    {
14
        return 'Not found email to completed registration. '.
15
        'Check setting on your {{ resource_owner_name }} '.
16
        'to provide an email with API access.';
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getMessageData()
23
    {
24
        return array('{{ resource_owner_name }}' => ucfirst($this->getResourceOwnerName()));
25
    }
26
}
27