VCardException::emptyURL()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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