private function setItems($specification)
    {
        if ($specification instanceof ValidatorAnnotation) {
            $this->items = $this->createValidatorInstanceFromAnnotation(
                $specification
            );
        } else {
            $this->checkSpecificationIsArray($specification);
            $this->items = $this->convertAnnotationsToValidators($specification);
        }
    }