Skip to content

Commit b5f43cc

Browse files
committed
add getter methods to Document.
1 parent c7cd31c commit b5f43cc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/Document.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function __construct()
2020
$this->template = null;
2121
$this->queries = new QueryGroup();
2222
}
23+
2324
/**
2425
* @param Collection $collection
2526
*/
@@ -28,6 +29,14 @@ public function setCollection(Collection $collection)
2829
$this->collection = $collection;
2930
}
3031

32+
/**
33+
* @return Collection|null
34+
*/
35+
public function getCollection()
36+
{
37+
return $this->collection;
38+
}
39+
3140
/**
3241
*
3342
*/
@@ -44,6 +53,14 @@ public function setError(Error $error)
4453
$this->error = $error;
4554
}
4655

56+
/**
57+
* @return Error|null
58+
*/
59+
public function getError()
60+
{
61+
return $this->error;
62+
}
63+
4764
/**
4865
*
4966
*/
@@ -60,6 +77,14 @@ public function setTemplate(Template $template)
6077
$this->template = $template;
6178
}
6279

80+
/**
81+
* @return Template|null
82+
*/
83+
public function getTemplate()
84+
{
85+
return $this->template;
86+
}
87+
6388
/**
6489
*
6590
*/

0 commit comments

Comments
 (0)