for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SixtyNine\Cloud\Model;
use Webmozart\Assert\Assert;
/**
* Embed a TTF font in the Cloud system.
*/
class Font
{
/** @var string */
protected $name;
protected $file;
* Create a TTF font from the given $file.
* @param string $name
* @param string $file
* @throws \InvalidArgumentException
public function __construct($name, $file)
Assert::fileExists($file, "File not found $file");
$this->name = $name;
$this->file = $file;
}
public function setFile($file)
* @return string
public function getFile()
return $this->file;
public function setName($name)
public function getName()
return $this->name;