public function getKeyedByProperty($property)
    {
        $results = [];
        foreach ($this as $item) {
            $results[$item->$property] = $item;
        }
        return new static($results);
    }
public function getKeyedByProperty($property)
    {
        $results = [];
        foreach ($this as $item) {
            $results[$item->$property] = $item;
        }
        return new static($results);
    }
public function getKeyedByProperty ( $ property ) { $ results = [ ] ; foreach ( $ this as $ item ) { $ results [ $ item -> $ property ] = $ item ; } return new static ( $ results ) ; }
key the iterator by the specified property
@param  string $property
@return Object
key the iterator by the specified property