Doctrine\Common\Collections\ArrayCollection::createFrom PHP Method

createFrom() protected method

This method is provided for derived classes to specify how a new instance should be created when constructor semantics have changed.
protected createFrom ( array $elements ) : static
$elements array Elements.
return static
    protected function createFrom(array $elements)
    {
        return new static($elements);
    }