Dhii/io-resource-interface

View on GitHub
src/WritableResourceInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Dhii\Io\Resource;

/**
 * A resource that can be written to.
 *
 * @since [*next-version*]
 */
interface WritableResourceInterface extends ResourceInterface
{
    /**
     * Writes to this instance.
     *
     * @since [*next-version*]
     *
     * @param int $string The data to write.
     *
     * @return int The amount of bytes written.
     */
    public function write($string);
}