1: <?php namespace Knot\Dict; 2: 3: trait CountableTrait { 4: 5: protected $data = [ ]; 6: 7: 8: /** 9: * @param int $mode 10: * 11: * @return int 12: */ 13: public function count($mode = COUNT_NORMAL) 14: { 15: return count($this->data, $mode); 16: } 17: 18: }