Scalr\Model\Collections\EntityIterator::getArrayCopy PHP Method

getArrayCopy() public method

Creates a copy of the ArrayObject.
public getArrayCopy ( ) : array
return array Returns copy as an array
    public function getArrayCopy()
    {
        $ret = [];
        foreach ($this as $entity) {
            $ret[] = $entity;
        }
        return $ret;
    }