for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* vipnytt/RobotsTxtParser
*
* @link https://github.com/VIPnytt/RobotsTxtParser
* @license https://github.com/VIPnytt/RobotsTxtParser/blob/master/LICENSE The MIT License (MIT)
*/
namespace vipnytt\RobotsTxtParser\Client\Directives;
* Class DelayClient
* @see https://github.com/VIPnytt/RobotsTxtParser/blob/master/docs/methods/DelayClient.md for documentation
* @package vipnytt\RobotsTxtParser\Client\Directives
class DelayClient extends DelayCore
{
* Value
* @var float|int
private $value;
* Export value
private $exportValue;
* DelayClient constructor.
* @param string $baseUri
* @param string $product
* @param float|int $value
* @param float|int $fallbackValue
public function __construct($baseUri, $product, $value, $fallbackValue = 0)
parent::__construct($baseUri, $product);
$this->exportValue = $value;
$this->value = $value > 0 ? $value : $fallbackValue;
}
* Get value
* @return float|int
public function getValue()
return $this->value;
* Export
public function export()
return $this->exportValue;