for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPKitchen\Platform\Struct\Mixin;
/**
* Represents implementation of countable interface for collections.
*
* @property array $elements data storage.
* @author Dmitry Kolodko <[email protected]>
* @since 1.0
*/
trait CountableMethods {
* Count elements of an object
* @link http://php.net/manual/en/countable.count.php
* @return int count of elements.
public function count() {
return count($this->elements);
}