Cake\Shell\Task\ExtractTask::_store PHP Method

_store() protected method

Prepare a file to be stored
protected _store ( string $domain, string $header, string $sentence ) : void
$domain string The domain
$header string The header content.
$sentence string The sentence to store.
return void
    protected function _store($domain, $header, $sentence)
    {
        if (!isset($this->_storage[$domain])) {
            $this->_storage[$domain] = [];
        }
        if (!isset($this->_storage[$domain][$sentence])) {
            $this->_storage[$domain][$sentence] = $header;
        } else {
            $this->_storage[$domain][$sentence] .= $header;
        }
    }