1: <?php
2:
3: /**
4: * Deep
5: *
6: * @package rsanchez\Deep
7: * @author Rob Sanchez <info@robsanchez.com>
8: */
9:
10: namespace rsanchez\Deep\Model;
11:
12: use Illuminate\Database\Eloquent\Model;
13:
14: /**
15: * Model for the channel entries, matrix rows and grid rows
16: */
17: abstract class AbstractEntity extends Model
18: {
19: /**
20: * Get the entity ID (eg. entry_id or row_id)
21: * @return string|int
22: */
23: abstract public function getId();
24:
25: /**
26: * Get the entity type (eg. 'matrix' or 'grid' or 'entry')
27: * @return string|null
28: */
29: abstract public function getType();
30: }
31: