Add missing `@internal` annotations

This commit is contained in:
Nicolas Grekas 2019-01-30 12:43:38 +01:00
parent 82394d8a19
commit 823a95d81e
2 changed files with 10 additions and 1 deletions

View File

@ -228,6 +228,9 @@ class FormDataCollector extends DataCollector implements FormDataCollectorInterf
return $this->data;
}
/**
* @internal
*/
public function serialize()
{
if ($this->hasVarDumper) {

View File

@ -176,6 +176,9 @@ class DumpDataCollector extends DataCollector implements DataDumperInterface
$this->clonesIndex = 0;
}
/**
* @internal
*/
public function serialize()
{
if ($this->clonesCount !== $this->clonesIndex) {
@ -195,9 +198,12 @@ class DumpDataCollector extends DataCollector implements DataDumperInterface
return $ser;
}
/**
* @internal
*/
public function unserialize($data)
{
parent::unserialize($data);
$this->data = unserialize($data);
$charset = array_pop($this->data);
$fileLinkFormat = array_pop($this->data);
$this->dataCount = \count($this->data);