# booktics/1.0.19/base/validation/rules/rule.php

Booktics – Appointment Booking Calendar for Service Businesses, version 1.0.19. 28 lines.

- Page: https://pluginprobe.com/plugins/booktics/1.0.19/code/base/validation/rules/rule.php
- Raw: https://pluginprobe.com/plugins/booktics/1.0.19/raw/base/validation/rules/rule.php
- Modified: 2025-07-10T04:07:52+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/booktics/1.0.19/code/base/validation/rules/rule.php#L10-L20`.

```php
<?php
namespace Booktics\Validation\Rules;

/**
 * Rule interface
 */
interface Rule {
    /**
     * Check the validation rule passed or not
     *
     * @param string $field
     *
     * @param string $value
     *
     * @return bool
     */
    public function passes( $field, $value );

    /**
     * Set message for validation
     *
     * @param string $field
     *
     * @return string
     */
    public function message( $field );
}

```
