Pickle\Package\Util\JSON\Dumper::dump PHP Méthode

dump() public méthode

public dump ( Pickle\Base\Interfaces\Package $package, $with_version = true ) : string
$package Pickle\Base\Interfaces\Package
Résultat string
    public function dump(Interfaces\Package $package, $with_version = true)
    {
        return json_encode((new Util\Dumper())->dump($package, $with_version), JSON_PRETTY_PRINT);
    }