0 follower

Interface Yiisoft\Data\Writer\DataWriterInterface

ExtendsYiisoft\Data\Writer\DeletableInterface, Yiisoft\Data\Writer\WriteableInterface

A data writer is able to write or delete data items.

Public Methods

Hide inherited methods

Method Description Defined By
delete() Delete items specified. Yiisoft\Data\Writer\DeletableInterface
write() Write items specified. Yiisoft\Data\Writer\WriteableInterface

Method Details

Hide inherited methods

delete() public abstract method

Defined in: Yiisoft\Data\Writer\DeletableInterface::delete()

Delete items specified.

public abstract void delete ( iterable $items )
$items iterable

Items to delete.

throws Yiisoft\Data\Writer\DataWriterException

If there is an error deleting items.

                public function delete(iterable $items): void;

            
write() public abstract method

Defined in: Yiisoft\Data\Writer\WriteableInterface::write()

Write items specified.

public abstract void write ( iterable $items )
$items iterable

Items to write.

throws Yiisoft\Data\Writer\DataWriterException

If there is an error while writing items.

                public function write(iterable $items): void;