-
-
Notifications
You must be signed in to change notification settings - Fork 205
/
Copy pathSnapshotInterface.php
180 lines (147 loc) · 3.75 KB
/
SnapshotInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\PageBundle\Model;
/**
* Defines methods to interact with the persistency layer of a SnapshotInterface.
*
* @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* @method int|null getId()
* @method int|null getTargetId() NEXT_MAJOR: Remove this line.
* @method void setTargetId(?int $targetId) NEXT_MAJOR: Remove this line.
* @method PageInterface|null getTarget(): NEXT_MAJOR: Remove this line.
* @method void setTarget(?PageInterface $target) NEXT_MAJOR: Remove this line.
* @method int|null getParent()
* @method void setParentId(?int $parentId)
*/
interface SnapshotInterface
{
/**
* @param string $routeName
*/
public function setRouteName($routeName);
/**
* @return string $routeName
*/
public function getRouteName();
/**
* @return string|null $routeAlias
*/
public function getPageAlias();
/**
* The route alias defines an internal url code that user can use to point
* to an url. This feature must used with care to avoid to many generated queries.
*
* @param string|null $pageAlias
*/
public function setPageAlias($pageAlias);
/**
* Returns the page type.
*
* @return string|null
*/
public function getType();
/**
* Sets the page type.
*
* @param string|null $type
*/
public function setType($type);
/**
* @param bool $enabled
*/
public function setEnabled($enabled);
/**
* @return bool $enabled
*/
public function getEnabled();
/**
* @param string $name
*/
public function setName($name);
/**
* @return string $name
*/
public function getName();
/**
* @param string|null $url
*/
public function setUrl($url);
/**
* @return string|null $url
*/
public function getUrl();
public function setPublicationDateStart(?\DateTime $publicationDateStart = null);
/**
* @return \DateTime|null $publicationDateStart
*/
public function getPublicationDateStart();
public function setPublicationDateEnd(?\DateTime $publicationDateEnd = null);
/**
* @return \DateTime|null $publicationDateEnd
*/
public function getPublicationDateEnd();
/**
* @param \DateTime $createdAt
*/
public function setCreatedAt(?\DateTime $createdAt = null);
/**
* @return \DateTime $createdAt
*/
public function getCreatedAt();
/**
* @param \Datetime $updatedAt
*/
public function setUpdatedAt(?\DateTime $updatedAt = null);
/**
* @return \DateTime $updatedAt
*/
public function getUpdatedAt();
/**
* @param bool $decorate
*/
public function setDecorate($decorate);
/**
* @return bool
*/
public function getDecorate();
/**
* return bool.
*/
public function isHybrid();
/**
* @param int $position
*/
public function setPosition($position);
/**
* @return int
*/
public function getPosition();
/**
* @param PageInterface $page
*/
public function setPage(?PageInterface $page = null);
/**
* @return PageInterface|null
*/
public function getPage();
public function setSite(?SiteInterface $site = null);
/**
* @return SiteInterface|null
*/
public function getSite();
/**
* Serialized data of the current page.
*
* @return array
*/
public function getContent();
}