You are here

public function EntityShareEntityAbstract::__construct in Entity Share 7

Constructor. Initialize properties.

Parameters

object $entity: Entity to share.

1 call to EntityShareEntityAbstract::__construct()
EntityShareEntityExport::__construct in includes/entity_share.entity.export.inc
Constructor. Initialize properties.
1 method overrides EntityShareEntityAbstract::__construct()
EntityShareEntityExport::__construct in includes/entity_share.entity.export.inc
Constructor. Initialize properties.

File

includes/entity_share.entity.abstract.inc, line 95
Class for handling Entity Export Abstract.

Class

EntityShareEntityAbstract
Entity Share Entity class.

Code

public function __construct($entity) {
  if (empty($entity)) {
    throw new EntityShareException('Entity can\\t be empty.');
  }
  $this->originalEntity = $entity;
  $this->entity = $entity;
}