public function validateEmbeddedClass($class, $classAnnotations)
    {
        $check = false;

        foreach ($classAnnotations as $annotation) {
            if ($annotation instanceof \ProAI\Datamapper\Annotations\Embeddable) {
                $check = true;
            }
        }

        if (! $check) {
            throw new InvalidArgumentException('Embedded class '.$class.' has no @Embeddable annotation.');
        }
    }
public function validateEmbeddedClass($class, $classAnnotations)
    {
        $check = false;

        foreach ($classAnnotations as $annotation) {
            if ($annotation instanceof \ProAI\Datamapper\Annotations\Embeddable) {
                $check = true;
            }
        }

        if (! $check) {
            throw new InvalidArgumentException('Embedded class '.$class.' has no @Embeddable annotation.');
        }
    }
public function validateEmbeddedClass ( $ class , $ classAnnotations ) { $ check = false ; foreach ( $ classAnnotations as $ annotation ) { if ( $ annotation instanceof \ ProAI \ Datamapper \ Annotations \ Embeddable ) { $ check = true ; } } if ( ! $ check ) { throw new InvalidArgumentException ( 'Embedded class ' . $ class . ' has no @Embeddable annotation.' ) ; } }
Check if class exists.

@param string $class
@param array $classAnnotations
@return void
Check if class exists .