LeanMapper\Reflection\Property::checkContainsEnumeration PHP Méthode

checkContainsEnumeration() private méthode

    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.");
        }
    }