Which type of annotation should the reader target.
The default is class.

@param string $target
@param string $keyName

@return self
331744
public function target($target, $keyName = null)
    {
        $this->target = $target;
        $this->keyName = $keyName;

        return $this;
    }
1231571
public function parse(\Imi\Bean\Annotation\Base $annotation, string $className, string $target, string $targetName)
    {
        if($annotation instanceof \Imi\Bean\Annotation\Listener)
        {
            $this->data[] = [$annotation->eventName, $className, $annotation->priority];
            Event::on($annotation->eventName, $className, $annotation->priority);
        }
    }
993571
public function setReplyMethod($methodName)
    {
        if (!preg_match('#^[/?]#', $methodName)) {
            $this->_targetUri = rtrim($this->_targetUri, '/') . '/';
        }
        $this->_targetUri = $this->_targetUri . $methodName;
        return $this;
    }
91063
public void setTargetName (String targetName) {
        if (targetName == null) target = null;
        target = targetServer.getTarget(targetName);
    }
957252
public function setTarget($target) {
            
            if(is_array($target)) {
                foreach ($target as $arg) {
                    $this->arguments[] = $arg;
                }
            }
            if(is_string($target)) {
                $args = explode(',', $target);
                foreach ($args as $arg) {
                   $this->arguments[] = $arg; 
                }
            }
            return $this;
        }
1367234
public function copy(string $target, string $source, bool $override = false)
    {
        if (is_null($this->get($target)) || $override) {
            $this->set($target, $this->get($source));
        }
        return $this;
    }
168989
public function cloneProperties($target, $source)
    {
        $this->validaObjects($target, $source);

        $reflection = new \ReflectionClass($target);
        foreach ($reflection->getProperties() as $property) {

            $this->propertyAccessor->setValue(
                $target,
                $property->getName(),
                $this->propertyAccessor->getValue($source, $property->getName())
            );
        }
    }
1245585
public function parse(\Imi\Bean\Annotation\Base $annotation, string $className, string $target, string $targetName)
    {
        if($annotation instanceof ProcessPool)
        {
            if(isset($this->data[$annotation->name]))
            {
                new \RuntimeException(sprintf('Process pool %s is exists', $annotation->name));
            }
            $this->data[$annotation->name] = [
                'className'     => $className,
                'ProcessPool'   => $annotation,
            ];
        }
    }
555840
public function map($source, &$target)
    {
        $source = static::makeSource($source);
        $writer = static::makeWriter($target);

        foreach ($this->fields as $field) {
            try {
                $writer::set($target, $field->getName(), $field->getDefinition()->getValue($source));
            } catch (SourceFieldMissingException $e) {
                if ($this->ignoreAllMissing) {
                    continue;
                }
                throw $e;
            } catch (IgnoreFieldException $e) {
                continue;
            }
        }
    }
302530
public function getTargetClass($target): int
    {
        if (!in_array($target, $this->classes, true)) {
            throw new InvalidArgumentException(
                sprintf('Target with value "%s" is not part of the accepted classes', $target)
            );
        }

        return array_search($target, $this->classes, true);
    }
393533
public function parse(\Imi\Bean\Annotation\Base $annotation, string $className, string $target, string $targetName)
    {
        if($annotation instanceof \Imi\Bean\Annotation\ClassEventListener)
        {
            if(!isset($this->data[$annotation->className][$annotation->eventName]))
            {
                $this->data[$annotation->className][$annotation->eventName] = [];
            }
            $this->data[$annotation->className][$annotation->eventName][] = [
                'className' => $className,
                'priority'  => $annotation->priority,
            ];
        }
    }
1273415
public function setTarget($target)
    {
        if (!is_string($target) || $target == '') {
            throw new \InvalidArgumentException('No valid URL given.');
        }

        $this->target = $target;

        // Set meta refresh content if header location is ignored
        $this->setContent(
            sprintf('<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0; url=%1$s" />
    </head>
    <body>
        <p>Redirecting to <a href="%1$s">%1$s</a>.
    </body>
</html>', htmlspecialchars($target, ENT_QUOTES, 'UTF-8')));

        // Set header location
        $this->setHeader('Location', $target);

        return $this;
    }
1317547
public function get($targetName)
    {
        if (InstallTarget::DEFAULT_TARGET === $targetName) {
            return $this->getDefaultTarget();
        }

        if (!isset($this->targets[$targetName])) {
            throw NoSuchTargetException::forTargetName($targetName);
        }

        return $this->targets[$targetName];
    }
1359507
public function asLink($href=NULL,$target=NULL) {
		if (isset($href))
			$this->setProperty("href", $href);
		if(isset($target))
			$this->setProperty("target", $target);
		return $this->setTagName("a");
	}
752304
protected function dataGet($target, $key)
    {
        foreach (explode('.', $key) as $segment) {
            if (is_object($target) && in_array(Revisionable::class, class_uses_recursive(get_class($target)))) {
                $target = $this->passThroughRevisionable($target, $segment);
            } elseif ($target instanceof self || $target instanceof Revision) {
                $target = $this->passThroughRevision($target, $segment);
            } elseif ($target instanceof Model) {
                $target = $this->passThroughModel($target, $segment);
            } else {
                $target = null;
            }

            if (!$target) {
                return;
            }
        }

        return $target;
    }
1012159
public function getTarget(string $target)
    {
        if (! empty($this->match['target'][$target])) {
            return $this->match['target'][$target];
        }
    }
1350373
private function findTargetCompiler($target, $mode): CompilationTarget
    {
        /** @var CompilationTarget $targetCompiler */
        foreach ($this->compilationTargets as $targetCompiler) {
            if ($targetCompiler->supports($target, $mode)) {
                return $targetCompiler;
            }
        }

        throw new TargetUnsupportedException('The given target is not supported.');
    }