File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ abstract class AbstractRender implements RenderInterface
31
31
* Instance of the diff class that this renderer is generating the rendered diff for.
32
32
* @var Diff
33
33
*/
34
- public $ diff ;
34
+ protected $ diff ;
35
35
36
36
/**
37
37
* Array of the default options that apply to this renderer.
@@ -70,4 +70,27 @@ public function setOptions(array $options)
70
70
71
71
return $ this ;
72
72
}
73
+
74
+ /**
75
+ * {@inheritdoc}
76
+ *
77
+ * @return Diff
78
+ */
79
+ public function getDiffObject ()
80
+ {
81
+ return $ this ->diff ;
82
+ }
83
+
84
+ /**
85
+ * {@inheritdoc}
86
+ *
87
+ * @param Diff $diff
88
+ * @return $this
89
+ */
90
+ public function setDiffObject (Diff $ diff )
91
+ {
92
+ $ this ->diff = $ diff ;
93
+
94
+ return $ this ;
95
+ }
73
96
}
Original file line number Diff line number Diff line change 18
18
19
19
namespace Phalcon \Diff \Render ;
20
20
21
+ use Phalcon \Diff ;
22
+
21
23
/**
22
24
* Render Interface
23
25
*/
@@ -29,4 +31,19 @@ interface RenderInterface
29
31
* @return string
30
32
*/
31
33
public function render ();
34
+
35
+ /**
36
+ * Gets Diff object.
37
+ *
38
+ * @return Diff $diff
39
+ */
40
+ public function getDiffObject ();
41
+
42
+ /**
43
+ * Sets Diff object.
44
+ *
45
+ * @param Diff $diff
46
+ * @return RenderInterface
47
+ */
48
+ public function setDiffObject (Diff $ diff );
32
49
}
You can’t perform that action at this time.
0 commit comments