Inheritance: extends AbstractAttribute, implements IteratorAggregate, implements ArrayAccess, use trait Webiny\Component\StdLib\StdLibTrait
Example #1
0
 /**
  * @param null|string    $name
  * @param AbstractEntity $parent
  * @param string         $relatedAttribute
  */
 public function __construct($name = null, AbstractEntity $parent = null, $relatedAttribute)
 {
     $this->relatedAttribute = $relatedAttribute;
     parent::__construct($name, $parent);
 }
Example #2
0
 public function __construct($attribute = null, AbstractEntity $entity = null, $collectionName)
 {
     $this->intermediateCollection = $collectionName;
     parent::__construct($attribute, $entity);
 }