File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Cmf \Bundle \RoutingBundle \Doctrine \Phpcr ;
13
13
14
14
use Doctrine \Common \Collections \Collection ;
15
+ use Doctrine \ODM \PHPCR \HierarchyInterface ;
15
16
use Symfony \Cmf \Bundle \RoutingBundle \Model \RedirectRoute as RedirectRouteModel ;
16
17
use Symfony \Cmf \Component \Routing \RouteObjectInterface ;
17
- use Symfony \Cmf \Bundle \CoreBundle \Model \ChildInterface ;
18
18
19
19
/**
20
20
* {@inheritDoc}
21
21
*
22
22
* This extends the RedirectRoute Model. We need to re-implement everything
23
23
* that the PHPCR Route document adds.
24
24
*/
25
- class RedirectRoute extends RedirectRouteModel implements PrefixInterface, ChildInterface
25
+ class RedirectRoute extends RedirectRouteModel implements PrefixInterface, HierarchyInterface
26
26
{
27
27
/**
28
28
* parent document
@@ -92,6 +92,8 @@ public function getParent()
92
92
* Note that this will change the URL this route matches.
93
93
*
94
94
* @param object $parent the new parent document
95
+ *
96
+ * @return $this
95
97
*/
96
98
public function setParentDocument ($ parent )
97
99
{
@@ -100,6 +102,9 @@ public function setParentDocument($parent)
100
102
return $ this ;
101
103
}
102
104
105
+ /**
106
+ * {@inheritDoc}
107
+ */
103
108
public function getParentDocument ()
104
109
{
105
110
return $ this ->parent ;
Original file line number Diff line number Diff line change 13
13
14
14
use Doctrine \Common \Collections \ArrayCollection ;
15
15
use Doctrine \Common \Collections \Collection ;
16
+ use Doctrine \ODM \PHPCR \HierarchyInterface ;
16
17
use Doctrine \ODM \PHPCR \Document \Generic ;
17
18
use Doctrine \ODM \PHPCR \Exception \InvalidArgumentException ;
18
- use Symfony \Cmf \Bundle \CoreBundle \Model \ChildInterface ;
19
19
use Symfony \Cmf \Component \Routing \RouteObjectInterface ;
20
20
use Symfony \Cmf \Bundle \RoutingBundle \Model \Route as RouteModel ;
21
21
25
25
*
26
26
27
27
*/
28
- class Route extends RouteModel implements PrefixInterface, ChildInterface
28
+ class Route extends RouteModel implements PrefixInterface, HierarchyInterface
29
29
{
30
30
/**
31
31
* parent document
@@ -128,7 +128,7 @@ public function setParentDocument($parent)
128
128
* The parent document, which might be another route or some other
129
129
* document.
130
130
*
131
- * @return Generic object
131
+ * @return object The parent document
132
132
*/
133
133
public function getParentDocument ()
134
134
{
You can’t perform that action at this time.
0 commit comments