LeanMapper\Reflection\Property::checkContainsEnumeration PHP Method

checkContainsEnumeration() private method

    private function checkContainsEnumeration()
    {
        if (!$this->containsEnumeration()) {
            throw new InvalidMethodCallException("It doesn't make sense to call enumeration related method on property '{$this->name}' in entity {$this->entityReflection->getName()} since it doesn't contain enumeration.");
        }
    }