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

InvalidContentException::getContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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