for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the SexyField package.
*
* (c) Dion Snoeijen <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare (strict_types = 1);
namespace Tardigrades\SectionField\ValueObject;
final class Offset
{
/** @var int */
private $offset;
private function __construct(int $offset)
$this->offset = $offset;
}
public function toInt(): int
return $this->offset;
public static function fromInt(int $offset): self
return new self($offset);