for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Limsum\UrlMakers;
trait HasSize
{
/**
* Image width.
*
* @var float
*/
protected float $width;
* Image height.
protected float $height;
* @param float $width
* @return static
public function width(float $width): static
$this->width = $width;
return $this;
}
* @param float $height
public function height(float $height): static
$this->height = $height;
* @param float $size
public function square(float $size): static
$this->width = $size;
$this->height = $size;
public function size(float $width, float $height): static