for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File CountableTrait.php
*
* @author Edward Pfremmer <[email protected]>
*/
namespace Epfremme\Collection\Traits;
* Trait CountableTrait
* @property array|mixed[] $elements
* @package Epfremme\Collection\Traits
trait CountableTrait
{
* Return count of elements in collection
* @return int
public function count()
return count($this->elements);
}