src/ORM/ArrayList.php
public function find($key, $value)
    {
        foreach ($this->items as $item) {
            if ($this->extractValue($item, $key) == $value) {
                return $item;
            }
        }
        return null;
    }
public function find($key, $value)
    {
        foreach ($this->items as $item) {
            if ($this->extractValue($item, $key) == $value) {
                return $item;
            }
        }
        return null;
    }
public function find ( $ key , $ value ) { foreach ( $ this -> items as $ item ) { if ( $ this -> extractValue ( $ item , $ key ) == $ value ) { return $ item ; } } return null ; }
Find the first item of this list where the given key = value

@param string $key
@param string $value
@return mixed
Find the first item of this list where the given key = value