PartKeepr\DoctrineReflectionBundle\Services\ReflectionService::getExtJSAssertMapping PHP Method

getExtJSAssertMapping() public method

public getExtJSAssertMapping ( Constraint $assert )
$assert Symfony\Component\Validator\Constraint
    public function getExtJSAssertMapping(Constraint $assert)
    {
        switch (get_class($assert)) {
            case "Symfony\\Component\\Validator\\Constraints\\NotBlank":
                /**
                 * @var $assert NotBlank
                 */
                return ["type" => "presence", "message" => $assert->message];
                break;
            default:
                return false;
        }
    }