Overview

Namespaces

  • rsanchez
    • Deep
      • App
        • EE
        • Laravel
          • Facade
      • Collection
      • Hydrator
      • Model
      • Plugin
      • Relations
      • Repository

Classes

  • AbstractEntity
  • AbstractField
  • AbstractProperty
  • Asset
  • Category
  • CategoryField
  • CategoryPosts
  • Channel
  • Comment
  • Entry
  • Field
  • Fieldtype
  • File
  • GridCol
  • GridRow
  • JoinableScope
  • MatrixCol
  • MatrixRow
  • Member
  • MemberField
  • PlayaEntry
  • RelationshipEntry
  • Site
  • Title
  • UploadPref

Interfaces

  • FileInterface

Traits

  • GlobalAttributeVisibilityTrait
  • JoinableTrait
  • Overview
  • Namespace
  • Class
  • Tree
 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: 
API documentation generated by ApiGen 2.8.0