File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/src/Domain/ValueObjects/Number/Integer/Status.php
Back
<?php namespace AmeliaBooking\Domain\ValueObjects\Number\Integer; /** * Class Status * * @package AmeliaBooking\Domain\ValueObjects\Number\Integer */ final class Status { const INVISIBLE = 0; const VISIBLE = 1; /** * @var int */ private $status; /** * Status constructor. * * @param int $status */ public function __construct($status) { $this->status = (int)$status; } /** * Return the status from the value object * * @return int */ public function getValue() { return $this->status; } /** * @return bool */ public function isVisible() { return $this->status === self::VISIBLE; } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings