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 1212namespace Symfony \Cmf \Bundle \RoutingBundle \Doctrine \Phpcr ;
1313
1414use Doctrine \Common \Collections \Collection ;
15+ use Doctrine \ODM \PHPCR \HierarchyInterface ;
1516use Symfony \Cmf \Bundle \RoutingBundle \Model \RedirectRoute as RedirectRouteModel ;
1617use Symfony \Cmf \Component \Routing \RouteObjectInterface ;
17- use Symfony \Cmf \Bundle \CoreBundle \Model \ChildInterface ;
1818
1919/**
2020 * {@inheritDoc}
2121 *
2222 * This extends the RedirectRoute Model. We need to re-implement everything
2323 * that the PHPCR Route document adds.
2424 */
25- class RedirectRoute extends RedirectRouteModel implements PrefixInterface, ChildInterface
25+ class RedirectRoute extends RedirectRouteModel implements PrefixInterface, HierarchyInterface
2626{
2727 /**
2828 * parent document
@@ -92,6 +92,8 @@ public function getParent()
9292 * Note that this will change the URL this route matches.
9393 *
9494 * @param object $parent the new parent document
95+ *
96+ * @return $this
9597 */
9698 public function setParentDocument ($ parent )
9799 {
@@ -100,6 +102,9 @@ public function setParentDocument($parent)
100102 return $ this ;
101103 }
102104
105+ /**
106+ * {@inheritDoc}
107+ */
103108 public function getParentDocument ()
104109 {
105110 return $ this ->parent ;
Original file line number Diff line number Diff line change 1313
1414use Doctrine \Common \Collections \ArrayCollection ;
1515use Doctrine \Common \Collections \Collection ;
16+ use Doctrine \ODM \PHPCR \HierarchyInterface ;
1617use Doctrine \ODM \PHPCR \Document \Generic ;
1718use Doctrine \ODM \PHPCR \Exception \InvalidArgumentException ;
18- use Symfony \Cmf \Bundle \CoreBundle \Model \ChildInterface ;
1919use Symfony \Cmf \Component \Routing \RouteObjectInterface ;
2020use Symfony \Cmf \Bundle \RoutingBundle \Model \Route as RouteModel ;
2121
2525 *
26262727 */
28- class Route extends RouteModel implements PrefixInterface, ChildInterface
28+ class Route extends RouteModel implements PrefixInterface, HierarchyInterface
2929{
3030 /**
3131 * parent document
@@ -128,7 +128,7 @@ public function setParentDocument($parent)
128128 * The parent document, which might be another route or some other
129129 * document.
130130 *
131- * @return Generic object
131+ * @return object The parent document
132132 */
133133 public function getParentDocument ()
134134 {
You can’t perform that action at this time.
0 commit comments