Yosymfony\Spress\Core\DataSource\Item::setId PHP Метод

setId() защищенный Метод

Sets id.
protected setId ( string $id )
$id string The item identifier
    protected function setId($id)
    {
        if (strlen($id) === 0) {
            throw new \RuntimeException('Invalid id. Expected a non-empty string.');
        }
        $this->id = $id;
    }