private setPaginationLink ( string $name, string $value ) : self | ||
$name | string | The name of the link |
$value | string | The link |
리턴 | self |
private function setPaginationLink($name, $value)
{
if (!is_object($value) and !is_string($value) and !is_null($value)) {
throw new ValidationException('property "' . $name . '" has to be an object, a string or null, "' . gettype($value) . '" given.');
}
if (is_string($value)) {
$this->container->set($name, strval($value));
} elseif (is_object($value)) {
$this->setLink($name, $value);
}
return $this;
}