Pressbooks\Utility\JsonManifest::__construct PHP Метод

__construct() публичный Метод

public __construct ( $manifest_path )
    public function __construct($manifest_path)
    {
        if (file_exists($manifest_path)) {
            $this->manifest = json_decode(file_get_contents($manifest_path), true);
        } else {
            $this->manifest = [];
        }
    }