for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OpenConext\Value\Saml\Metadata\ContactPerson;
use OpenConext\Value\Exception\InvalidArgumentException;
final class Company
{
/**
* @var string
*/
private $company;
** @param string $company
public function __construct($company)
if (!is_string($company) || trim($company) === '') {
throw InvalidArgumentException::invalidType('non-blank string', 'company', $company);
}
$this->company = $company;
* @param Company $other
* @return bool
public function equals(Company $other)
return $this->company === $other->company;
* @return string
public function getCompany()
return $this->company;
public function __toString()