Completed
Push — develop ( 183c36...cfc9ab )
by Stéphane
02:42
created

InvalidContentException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setContent() 0 5 1
A getContent() 0 4 1
1
<?php
2
3
namespace Bee4\RobotsTxt\Exception;
4
5
use InvalidArgumentException;
6
7
/**
8
 * Class DuplicateRuleException
9
 * Error thrown when the parser try to add 2 rules for the same UA
10
 *
11
 * @copyright Bee4 2015
12
 * @author    Stephane HULARD <[email protected]>
13
 */
14
class InvalidContentException extends InvalidArgumentException
15
{
16
    /**
17
     * @var Rule
18
     */
19
    protected $content;
20
21
    /**
22
     * Failed content
23
     * @param mixed $content
24
     * @return InvalidContentException
25
     */
26
    public function setContent($content)
27
    {
28
        $this->content = $content;
29
        return $this;
30
    }
31
32
    /**
33
     * @return mixed
34
     */
35
    public function getContent()
36
    {
37
        return $this->content;
38
    }
39
}
40