public function setEntity(string
$entity): void
{ $this->entity =
$entity;
} /**
* @return Entity|null
*/
public function getAt(int
$position) { return $this->entities->
getAt($position);
} /**
* @return static
*
* @deprecated tag:v6.6.0 - reason:return-type-change - Return type will be changed to `static`
*/
protected function createNew(iterable
$elements =
[]) { if (!
($elements instanceof EntityCollection
)) { $elements =
new EntityCollection($elements);
}