# hurrytimer/2.9.2/includes/ConditionalLogic.php

HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress &amp; WooCommerce, version 2.9.2. 20 lines.

- Page: https://pluginprobe.com/plugins/hurrytimer/2.9.2/code/includes/ConditionalLogic.php
- Raw: https://pluginprobe.com/plugins/hurrytimer/2.9.2/raw/includes/ConditionalLogic.php
- Modified: 2019-08-13T11:33:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hurrytimer/2.9.2/code/includes/ConditionalLogic.php#L10-L20`.

```php
<?php
namespace HurryTimer;

class ConditionalLogic
{
    protected $rules = [];

    function addRule($rule)
    {
        $this->rules[$rule['key']] = $rule;

        return $this;
    }

    function get()
    {
        return $this->rules;
    }
}

```
