public function __construct(Entity $entity) { $this->entity = $entity; $this->entityType = $entity::NETWORK_ID; }