__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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 Picture
*
* @package AmeliaBooking\Domain\ValueObjects
*/
final class Picture
{
public const MAX_LENGTH = 767;
/**
* @var string
*/
private $pathToFull;
/**
* @var string
*/
private $pathToThumb;
/**
* Name constructor.
*
* @param string $pathToFull
* @param string $pathToThumb
*
* @throws InvalidArgumentException
*/
public function __construct($pathToFull, $pathToThumb)
{
if (empty($pathToFull)) {
throw new InvalidArgumentException("Path to full can't be empty");
}
if (strlen($pathToFull) > static::MAX_LENGTH) {
throw new InvalidArgumentException(
"Path to full \"{$pathToFull}\" must be less than " . static::MAX_LENGTH . ' chars'
);
}
if (empty($pathToThumb)) {
throw new InvalidArgumentException("Path to thumb can't be empty");
}
if (strlen($pathToThumb) > static::MAX_LENGTH) {
throw new InvalidArgumentException(
"Path to thumb string length \"{$pathToThumb}\" must be less than " . static::MAX_LENGTH . ' chars'
);
}
$this->pathToFull = $pathToFull;
$this->pathToThumb = $pathToThumb;
}
/**
* Return the Full path
*
* @return string
*/
public function getFullPath()
{
return $this->pathToFull;
}
/**
* Return the Thumb path
*
* @return string
*/
public function getThumbPath()
{
return $this->pathToThumb;
}
}
| 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 |
|