1: <?php
2:
3: namespace Charcoal\Object;
4:
5: // Dependency from 'charcoal-core'
6: use Charcoal\Model\ModelInterface;
7:
8: /**
9: * Content Interface, based on charcoal/model/model-interface.
10: */
11: interface ContentInterface extends ModelInterface
12: {
13: /**
14: * @param boolean $active The active flag.
15: * @return Content Chainable
16: */
17: public function setActive($active);
18:
19: /**
20: * @return boolean
21: */
22: public function active();
23:
24: /**
25: * @param integer $position The position index.
26: * @return Content Chainable
27: */
28: public function setPosition($position);
29:
30: /**
31: * @return integer
32: */
33: public function position();
34:
35: /**
36: * @param \DateTimeInterface|string|null $created The created date.
37: * @return Content Chainable
38: */
39: public function setCreated($created);
40:
41: /**
42: * @return \DateTimeInterface|null
43: */
44: public function created();
45:
46: /**
47: * @param mixed $createdBy The author, at object creation.
48: * @return Content Chainable
49: */
50: public function setCreatedBy($createdBy);
51:
52: /**
53: * @return mixed
54: */
55: public function createdBy();
56:
57: /**
58: * @param \DateTimeInterface|string|null $lastModified The last modified date.
59: * @return Content Chainable
60: */
61: public function setLastModified($lastModified);
62:
63: /**
64: * @return \DateTimeInterface|null
65: */
66: public function lastModified();
67:
68: /**
69: * @param mixed $lastModifiedBy The author, at object modificaition (update).
70: * @return Content Chainable
71: */
72: public function setLastModifiedBy($lastModifiedBy);
73:
74: /**
75: * @return mixed
76: */
77: public function lastModifiedBy();
78: }
79: