for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Support\Images;
/**
* @property-read string $name
* @property-read string|null $localPath
*/
class Image
{
/** @var string */
protected $name;
/** @var string|null */
protected $localPath;
public function __construct($name, $localPath = null)
$this->name = $name;
name
App\Support\Images\Image
$this->localPath = $localPath;
localPath
}
public function __get($name)
return $this->{$name} ?? null;
public function __set($name, $value)
throw new \RuntimeException("Cannot set the value of {$name}");