Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 472 Bytes

CountableTrait.md

File metadata and controls

27 lines (18 loc) · 472 Bytes

CountableTrait Documentation

A trait for \Countable interface.

Example:

class Storage implements \Countable
{
    private $storage = [];

    use \Greg\Support\Accessor\CountableTrait;

    private function &getAccessor()
    {
        return $this->storage;
    }
}

Table of contents:

Methods:

Includes \Countable methods.