lib/D4rk4ng3l/Oxid/Compiler/Compiler.php
public function processClass($className, $path)
    {
        $reflection = new \ReflectionClass($className);
        if (null === $this->reader->getClassAnnotation($reflection, $this->annotationClass)) {
            return array();
        }

        $mappings = array();

        $this->output->writeln("Found class: $className");
        foreach ($reflection->getMethods() as $method) {
            /** @var Method[] $annotations */
            $annotations = $this->reader->getMethodAnnotations($method);
            if (0 == count($annotations)) {
                continue;
            }

            $this->output->writeln(
                sprintf(
                    "Found annotations for method %s::%s.",
                    $method->class,
                    $method->getName()
                )
            );

            foreach ($annotations as $annotation) {
                if (!($annotation instanceof Method)) {
                    continue;
                }

                $this->output->writeln(
                    sprintf(
                        "Found mapping: %s::%s --> %s::%s",
                        $method->class,
                        $method->getName(),
                        $annotation->getClass(),
                        $annotation->getMethod()
                    )
                );

                $mapping = new Mapping();
                $moduleFile = $reflection->getFileName();
                $moduleFile = substr($moduleFile, strpos($moduleFile, $path));
                $mapping
                    ->setOxidClass($annotation->getClass())
                    ->setOxidMethod($annotation->getMethod())
                    ->setModuleClass($className)
                    ->setModuleMethod($method->getName())
                    ->setReturn($annotation->hasReturnValue())
                    ->setParentExecution($annotation->getParentExecution())
                    ->setModuleFile($moduleFile);
                $mappings[] = $mapping;
            }
        }

        return $mappings;
    }
public function processClass($className, $path)
    {
        $reflection = new \ReflectionClass($className);
        if (null === $this->reader->getClassAnnotation($reflection, $this->annotationClass)) {
            return array();
        }

        $mappings = array();

        $this->output->writeln("Found class: $className");
        foreach ($reflection->getMethods() as $method) {
            /** @var Method[] $annotations */
            $annotations = $this->reader->getMethodAnnotations($method);
            if (0 == count($annotations)) {
                continue;
            }

            $this->output->writeln(
                sprintf(
                    "Found annotations for method %s::%s.",
                    $method->class,
                    $method->getName()
                )
            );

            foreach ($annotations as $annotation) {
                if (!($annotation instanceof Method)) {
                    continue;
                }

                $this->output->writeln(
                    sprintf(
                        "Found mapping: %s::%s --> %s::%s",
                        $method->class,
                        $method->getName(),
                        $annotation->getClass(),
                        $annotation->getMethod()
                    )
                );

                $mapping = new Mapping();
                $moduleFile = $reflection->getFileName();
                $moduleFile = substr($moduleFile, strpos($moduleFile, $path));
                $mapping
                    ->setOxidClass($annotation->getClass())
                    ->setOxidMethod($annotation->getMethod())
                    ->setModuleClass($className)
                    ->setModuleMethod($method->getName())
                    ->setReturn($annotation->hasReturnValue())
                    ->setParentExecution($annotation->getParentExecution())
                    ->setModuleFile($moduleFile);
                $mappings[] = $mapping;
            }
        }

        return $mappings;
    }
@param string $className

@return array