public function findItems(callable $callback)
    {
        $result = array_filter(
            $this->data,
            function (ClientObject $item) use ($callback) {
                return call_user_func($callback, $item);
            }
        );
        if (count($result) > 0)
            return array_values($result);
        return null;
    }
public function findItems(callable $callback)
    {
        $result = array_filter(
            $this->data,
            function (ClientObject $item) use ($callback) {
                return call_user_func($callback, $item);
            }
        );
        if (count($result) > 0)
            return array_values($result);
        return null;
    }
public function findItems ( callable $ callback ) { $ result = array_filter ( $ this -> data , function ( ClientObject $ item ) use ( $ callback ) { return call_user_func ( $ callback , $ item ) ; } ) ; if ( count ( $ result ) > 0 ) return array_values ( $ result ) ; return null ; }
Finds items by entity property
@param callable $callback
@return array
Finds items by entity property