for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the php-epp2 library.
*
* (c) Gunter Grodotzki <[email protected]>
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
namespace AfriCC\EPP\Frame\Command\Info;
use AfriCC\EPP\Frame\Command\Info as InfoCommand;
use AfriCC\EPP\Validator;
use Exception;
* @see http://tools.ietf.org/html/rfc5732#section-3.1.2
class Host extends InfoCommand
{
public function setHost($host)
if (!Validator::isHostname($host)) {
throw new Exception(sprintf('%s is not a valid host name', $host));
}
$this->set('host:name', $host);