* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Modified using {@see https://github.com/BrianHenryIE/strauss}. */ namespace KadenceWP\KadenceStarterTemplates\Symfony\Component\HttpClient\Chunk; use KadenceWP\KadenceStarterTemplates\Symfony\Contracts\HttpClient\ChunkInterface; /** * @author Nicolas Grekas
* * @internal */ class DataChunk implements ChunkInterface { private $offset = 0; private $content = ''; public function __construct(int $offset = 0, string $content = '') { $this->offset = $offset; $this->content = $content; } /** * {@inheritdoc} */ public function isTimeout(): bool { return false; } /** * {@inheritdoc} */ public function isFirst(): bool { return false; } /** * {@inheritdoc} */ public function isLast(): bool { return false; } /** * {@inheritdoc} */ public function getInformationalStatus(): ?array { return null; } /** * {@inheritdoc} */ public function getContent(): string { return $this->content; } /** * {@inheritdoc} */ public function getOffset(): int { return $this->offset; } /** * {@inheritdoc} */ public function getError(): ?string { return null; } }