@@ 319-326 (lines=8) @@ | ||
316 | } |
|
317 | ||
318 | // Evaluate @HasLifecycleCallbacks annotation |
|
319 | if (isset($classAnnotations[Annotation\HasLifecycleCallbacks::class])) { |
|
320 | /* @var $method \ReflectionMethod */ |
|
321 | foreach ($reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) { |
|
322 | foreach ($this->getMethodCallbacks($method) as $callback) { |
|
323 | $classMetadata->addLifecycleCallback($method->getName(), $callback); |
|
324 | } |
|
325 | } |
|
326 | } |
|
327 | ||
328 | // Evaluate @InheritanceType annotation |
|
329 | if (isset($classAnnotations[Annotation\InheritanceType::class])) { |
@@ 419-426 (lines=8) @@ | ||
416 | } |
|
417 | ||
418 | // Evaluate @HasLifecycleCallbacks annotation |
|
419 | if (isset($classAnnotations[Annotation\HasLifecycleCallbacks::class])) { |
|
420 | /* @var $method \ReflectionMethod */ |
|
421 | foreach ($reflectionClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) { |
|
422 | foreach ($this->getMethodCallbacks($method) as $callback) { |
|
423 | $classMetadata->addLifecycleCallback($method->getName(), $callback); |
|
424 | } |
|
425 | } |
|
426 | } |
|
427 | ||
428 | // Evaluate annotations on properties/fields |
|
429 | /* @var $reflProperty \ReflectionProperty */ |