Your IP : 216.73.217.81


Current Path : /home3/vocl2671/dockitsoft.fr/system/src/Grav/Framework/File/
Upload File :
Current File : //home3/vocl2671/dockitsoft.fr/system/src/Grav/Framework/File/File.php

<?php

declare(strict_types=1);

/**
 * @package    Grav\Framework\File
 *
 * @copyright  Copyright (C) 2015 - 2019 Trilby Media, LLC. All rights reserved.
 * @license    MIT License; see LICENSE file for details.
 */

namespace Grav\Framework\File;

class File extends AbstractFile
{
    /**
     * {@inheritdoc}
     * @see FileInterface::load()
     */
    public function load()
    {
        return parent::load();
    }

    /**
     * {@inheritdoc}
     * @see FileInterface::save()
     */
    public function save($data): void
    {
        if (!\is_string($data)) {
            throw new \RuntimeException('Cannot save data, string required');
        }

        parent::save($data);
    }
}