public function getTag(string $name)
    {
        $tagFinderOutput = $this->caller
            ->execute(TagCommand::getInstance()->listTags())
            ->getOutputLines(true);

        foreach ($tagFinderOutput as $line) {
            if ($line === $name) {
                return new Tag($this, $name);
            }
        }

        return null;
    }
public function getTag(string $name)
    {
        $tagFinderOutput = $this->caller
            ->execute(TagCommand::getInstance()->listTags())
            ->getOutputLines(true);

        foreach ($tagFinderOutput as $line) {
            if ($line === $name) {
                return new Tag($this, $name);
            }
        }

        return null;
    }
public function getTag ( string $ name ) { $ tagFinderOutput = $ this -> caller -> execute ( TagCommand :: getInstance ( ) -> listTags ( ) ) -> getOutputLines ( true ) ; foreach ( $ tagFinderOutput as $ line ) { if ( $ line === $ name ) { return new Tag ( $ this , $ name ) ; } } return null ; }
Return a tag object

@param string $name The tag name

@throws \RuntimeException
@throws \Symfony\Component\Process\Exception\RuntimeException
@return Tag|null
Return a tag object