forked from mlocati/postcss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUndefinedProperty.php
More file actions
45 lines (39 loc) · 889 Bytes
/
UndefinedProperty.php
File metadata and controls
45 lines (39 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
namespace PostCSS\Exception;
class UndefinedProperty extends Exception
{
/**
* @var object
*/
protected $object;
/**
* @var string
*/
protected $propertyName;
/**
* @param object $object
* @param string $propertyName
* @param int|null $code
* @param \Exception|null $previous
*/
public function __construct($object, $propertyName, $code = null, $previous = null)
{
$this->object = $object;
$this->propertyName = $propertyName;
parent::__construct(sprintf('%1$s does not have a property named %2$s', get_class($object), $propertyName));
}
/**
* @return object
*/
public function getObject()
{
return $this->object;
}
/**
* @return string
*/
public function getPropertyName()
{
return $this->propertyName;
}
}