for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mhor\MediaInfo\Attribute;
use Mhor\MediaInfo\DumpTrait;
class Size implements AttributeInterface
{
use DumpTrait;
/**
* @var int
*/
private $bit;
* @param string|int $size
public function __construct($size)
$this->bit = (int) $size;
}
* @return int
public function getBit(): int
return $this->bit;
* @return string
public function __toString(): string
return (string) $this->bit;