VCardException   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A outputDirectoryNotExists() 0 3 1
A elementExists() 0 3 1
A invalidImage() 0 3 1
A emptyURL() 0 3 1
1
<?php
2
3
namespace Rogersxd\VCard;
4
5
/**
6
 * VCard Exception Class.
7
 */
8
class VCardException extends \Exception
9
{
10
    public static function elementExists($element)
11
    {
12
        return new self($element . '" not is multiple.');
13
    }
14
15
    public static function emptyURL()
16
    {
17
        return new self('Verify URL.');
18
    }
19
20
    public static function invalidImage()
21
    {
22
        return new self('Data is not an valid image.');
23
    }
24
25
    public static function outputDirectoryNotExists()
26
    {
27
        return new self('Output directory does not exist.');
28
    }
29
}
30