__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace AmeliaBooking\Domain\ValueObjects;
use AmeliaBooking\Domain\Common\Exceptions\InvalidArgumentException;
/**
* Class Priority
*
* @package AmeliaBooking\Domain\ValueObjects
*/
final class Priority
{
public const LEAST_EXPENSIVE = 'least_expensive';
public const MOST_EXPENSIVE = 'most_expensive';
public const LEAST_OCCUPIED = 'least_occupied';
public const MOST_OCCUPIED = 'most_occupied';
/**
* @var int
*/
private $value;
/**
* @param string $value
*
* @throws InvalidArgumentException
*/
public function __construct($value)
{
if (
!in_array(
$value,
[
self::LEAST_EXPENSIVE,
self::MOST_EXPENSIVE,
self::LEAST_OCCUPIED,
self::MOST_OCCUPIED
],
false
)
) {
throw new InvalidArgumentException('Not valid priority option');
}
$this->value = $value;
}
/**
* Return the value from the value object
*
* @return string
*/
public function getValue()
{
return $this->value;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| DateTime | Folder | 0750 |
|
|
| Number | Folder | 0750 |
|
|
| String | Folder | 0750 |
|
|
| BooleanValueObject.php | File | 632 B | 0640 |
|
| Discount.php | File | 1.1 KB | 0640 |
|
| DiscountFixedValue.php | File | 1.08 KB | 0640 |
|
| DiscountPercentageValue.php | File | 1.1 KB | 0640 |
|
| Duration.php | File | 719 B | 0640 |
|
| Gender.php | File | 870 B | 0640 |
|
| GeoTag.php | File | 1.47 KB | 0640 |
|
| Json.php | File | 549 B | 0640 |
|
| Picture.php | File | 1.7 KB | 0640 |
|
| PositiveDuration.php | File | 803 B | 0640 |
|
| Priority.php | File | 1.18 KB | 0640 |
|
| Recurring.php | File | 4.05 KB | 0640 |
|