function numberOfBytesConsumedByDataConsumerIs(data\consumer $dataConsumer, data\data\numberOfBytes $bytes) { $data = substr($this->data, $bytes->asInteger); if ($data) { $dataConsumer->newData(new data\data($data)); } return $this; }
function dataConsumerIs(data\consumer $consumer) { $consumer->newData($this->data); return $this; }
function dataConsumerIs(data\consumer $dataConsumer) { $dataConsumer->newData(self::newJsonFromData($this->data)); return $this; }
function dataConsumerIs(data\consumer $dataConsumer) { $dataConsumer->newData(new data\data($this->data)); $this->data = ''; return $this; }
function dataConsumerIs(data\consumer $dataConsumer) { $dataConsumer->dataProviderIs($this->template); return $this; }