src/Data/DefaultCollection.php
public function get($index)
    {
        if (\array_key_exists($index, $this->arrCollection)) {
            return $this->arrCollection[$index];
        }

        return null;
    }
public function get($index)
    {
        if (\array_key_exists($index, $this->arrCollection)) {
            return $this->arrCollection[$index];
        }

        return null;
    }
public function get ( $ index ) { if ( \ array_key_exists ( $ index , $ this -> arrCollection ) ) { return $ this -> arrCollection [ $ index ] ; } return null ; }
Get the model at a specific index.

@param int $index The index of the model to retrieve.

@return ModelInterface
Get the model at a specific index .