1 | <?php |
||
8 | class Reply extends AbstractBlock |
||
9 | { |
||
10 | /** |
||
11 | * The route used to display the post. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $route; |
||
16 | |||
17 | /** |
||
18 | * The user of the reply. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $user; |
||
23 | |||
24 | /** |
||
25 | * Constructor. |
||
26 | * |
||
27 | * @param string $route The route used to display the post. |
||
28 | * @param string $user The user of the reply. |
||
29 | */ |
||
30 | public function __construct(string $route, string $user) |
||
35 | |||
36 | /** |
||
37 | * Get the route. |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getRoute() |
||
45 | |||
46 | /** |
||
47 | * Get the user. |
||
48 | * |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getUser() |
||
55 | |||
56 | /** |
||
57 | * Returns true if this block can contain the given block as a child node |
||
58 | * |
||
59 | * @param AbstractBlock $block |
||
60 | * |
||
61 | * @return bool |
||
62 | */ |
||
63 | public function canContain(AbstractBlock $block) |
||
67 | |||
68 | /** |
||
69 | * Returns true if block type can accept lines of text |
||
70 | * |
||
71 | * @return bool |
||
72 | */ |
||
73 | public function acceptsLines() |
||
77 | |||
78 | /** |
||
79 | * Whether this is a code block |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | public function isCode() |
||
87 | |||
88 | public function matchesNextLine(Cursor $cursor) |
||
92 | } |
||
93 |