for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace KunicMarko\SonataAnnotationBundle\Reader;
use KunicMarko\SonataAnnotationBundle\Annotation\ParentAssociationMapping;
/**
* @author Marko Kunic <[email protected]>
*/
class ParentAssociationMappingReader
{
use AnnotationReaderTrait;
public function getParent(\ReflectionClass $class): ?string
if ($annotation = $this->getClassAnnotation($class, ParentAssociationMapping::class)) {
return $annotation->parent;
parent
KunicMarko\SonataAnnotat...ion\AnnotationInterface
instanceof
}
return null;