LukePOLO\LaraCart\CartItem::find PHP Méthode

find() public méthode

Search for matching options on the item.
public find ( $data ) : mixed
Résultat mixed
    public function find($data)
    {
        foreach ($data as $key => $value) {
            if ($this->{$key} !== $value) {
                return false;
            }
        }
        return $this;
    }