public setContainer ( string $container = 'RECTANGULAR' ) : void | ||
$container | string | |
Результат | void |
public function setContainer($container = 'RECTANGULAR')
{
if ($container == 'RECTANGULAR' || $container == 'NONRECTANGULAR') {
$this->container = $container;
} else {
throw new Exception('Error: The container type must be RECTANGULAR or NONRECTANGULAR.');
}
}