kegi/netscape-cookie-file-handler

View on GitHub
src/NetscapeCookieFileHandler/Parser/ParserInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace KeGi\NetscapeCookieFileHandler\Parser;

use KeGi\NetscapeCookieFileHandler\Configuration\HasConfigurationInterface;
use KeGi\NetscapeCookieFileHandler\Cookie\CookieCollectionInterface;
use KeGi\NetscapeCookieFileHandler\Exception\NetscapeCookieFileHandlerException;

interface ParserInterface extends HasConfigurationInterface
{

    /**
     * @param string $file
     *
     * @return CookieCollectionInterface
     * @throws NetscapeCookieFileHandlerException
     */
    public function parseFile(string $file) : CookieCollectionInterface;

    /**
     * @param string $fileContent
     *
     * @return CookieCollectionInterface
     */
    public function parseContent(string $fileContent
    ) : CookieCollectionInterface;
}