Вход Регистрация
Файл: vendor/php-ffmpeg/php-ffmpeg/src/Alchemy/BinaryDriver/ProcessBuilderFactoryInterface.php
Строк: 77
<?php

/*
 * This file is part of AlchemyBinaryDriver.
 *
 * (c) Alchemy <info@alchemy.fr>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AlchemyBinaryDriver;

use 
AlchemyBinaryDriverExceptionInvalidArgumentException;
use 
SymfonyComponentProcessProcess;

interface 
ProcessBuilderFactoryInterface
{
    
/**
     * Returns a new instance of Symfony Process
     *
     * @param string|array $arguments An argument or an array of arguments
     *
     * @return Process
     *
     * @throws InvalidArgumentException
     */
    
public function create($arguments = array());

    
/**
     * Returns the path to the binary that is used
     *
     * @return String
     */
    
public function getBinary();

    
/**
     * Sets the path to the binary
     *
     * @param String $binary A path to a binary
     *
     * @return ProcessBuilderFactoryInterface
     *
     * @throws InvalidArgumentException In case binary is not executable
     */
    
public function useBinary($binary);

    
/**
     * Set the default timeout to apply on created processes.
     *
     * @param integer|float $timeout
     *
     * @return ProcessBuilderFactoryInterface
     *
     * @throws InvalidArgumentException In case the timeout is not valid
     */
    
public function setTimeout($timeout);

    
/**
     * Returns the current timeout applied to the created processes.
     *
     * @return integer|float
     */
    
public function getTimeout();
}
Онлайн: 2
Реклама