File: src/Generics/Streams/Stream.php

Recommend this page to a friend!
  Classes of Maik Greubel  >  PHP Generics  >  src/Generics/Streams/Stream.php  >  Download  
File: src/Generics/Streams/Stream.php
Role: Class source
Content type: text/plain
Description: Stream interface
Class: PHP Generics
Framework for accessing streams, sockets and logs
Author: By
Last change: Add strict return types & fix socket write bug
Date: 3 years ago
Size: 702 bytes
 

Contents

Class file image Download
<?php

/**
 * This file is part of the PHP Generics package.
 *
 * @package Generics
 */
namespace Generics\Streams;

use \
Countable;
use
Generics\Resettable;

/**
 * This interface describes the implementation of a stream.
 *
 * @author Maik
 */
interface Stream extends Countable, Resettable
{

   
/**
     * Close the stream.
     * After closing the stream will be no longer available for reading and writing.
     */
   
public function close();

   
/**
     * Checks whether stream is ready for action.
     *
     * @return bool
     */
   
public function ready(): bool;

   
/**
     * Retrieves open status of stream
     *
     * @return bool
     */
   
public function isOpen(): bool;
}


For more information send a message to info at phpclasses dot org.