1: <?php
2:
3: namespace Mockery\Generator;
4:
5: class UndefinedTargetClass
6: {
7: private $name;
8:
9: public function __construct($name)
10: {
11: $this->name = $name;
12: }
13:
14: public function getName()
15: {
16: return $this->name;
17: }
18:
19: public function isAbstract()
20: {
21: return false;
22: }
23:
24: public function isFinal()
25: {
26: return false;
27: }
28:
29: public function getMethods()
30: {
31: return array();
32: }
33:
34: public function getNamespaceName()
35: {
36: $parts = explode("\\", ltrim($this->getName(), "\\"));
37: array_pop($parts);
38: return implode("\\", $parts);
39: }
40:
41: public function inNamespace()
42: {
43: return $this->getNamespaceName() !== '';
44: }
45:
46: public function getShortName()
47: {
48: $parts = explode("\\", $this->getName());
49: return array_pop($parts);
50: }
51:
52: public function implementsInterface($interface)
53: {
54: return false;
55: }
56:
57: public function hasInternalAncestor()
58: {
59: return false;
60: }
61: }
62: