Example #1
0
 /**
  * Constructor.
  *
  * @param   string  $key        The relationship field key.
  * @param   string  $relType    The relationship type.
  * @param   string  $entityType The entity type key.
  * @param   bool    $mixin
  */
 public function __construct($key, $relType, $entityType, $mixin = false)
 {
     parent::__construct($key, $mixin);
     $this->setRelType($relType);
     $this->entityType = $entityType;
 }
Example #2
0
 /**
  * Constructor.
  *
  * @param   string          $key
  * @param   string          $embedType
  * @param   EmbedMetadata   $embedMeta
  * @param   bool            $mixin
  */
 public function __construct($key, $embedType, EmbedMetadata $embedMeta, $mixin = false)
 {
     $this->embedMeta = $embedMeta;
     $this->setEmbedType($embedType);
     parent::__construct($key, $mixin);
 }