1: <?php
2: namespace Menu\Traits;
3:
4: use HtmlObject\Text;
5:
6: /**
7: * The base class around the different content types
8: */
9: class Content extends Text
10: {
11: /**
12: * Whether the content is a link or not
13: *
14: * @return boolean
15: */
16: public function isLink()
17: {
18: return false;
19: }
20:
21: /**
22: * Break off a chain
23: *
24: * @return Item
25: */
26: public function stop()
27: {
28: return $this->getParent(1);
29: }
30: }
31: