public function getByPropertyValues($property, $values, $strict = false)
    {
        $results = [];
        foreach ($this as $item) {
            foreach ($values as $value) {
                if ($strict) {
                    if ($item->$property === $value) {
                        $results[] = $item;
                    }
                } else {
                    if ($item->$property == $value) {
                        $results[] = $item;
                    }
                }
            }
        }
        return new static($results);
    }
public function getByPropertyValues($property, $values, $strict = false)
    {
        $results = [];
        foreach ($this as $item) {
            foreach ($values as $value) {
                if ($strict) {
                    if ($item->$property === $value) {
                        $results[] = $item;
                    }
                } else {
                    if ($item->$property == $value) {
                        $results[] = $item;
                    }
                }
            }
        }
        return new static($results);
    }
public function getByPropertyValues ( $ property , $ values , $ strict = false ) { $ results = [ ] ; foreach ( $ this as $ item ) { foreach ( $ values as $ value ) { if ( $ strict ) { if ( $ item -> $ property === $ value ) { $ results [ ] = $ item ; } } else { if ( $ item -> $ property == $ value ) { $ results [ ] = $ item ; } } } } return new static ( $ results ) ; }
get the models which match the property values
loose matching not strict
@param  string $property
@param  mixed $value
@return object ModelIterator
get the models which match the property values loose matching not strict