public function tagged()
    {
        $result = false;

        /** @var Tag $tag */
        foreach ($this->repository->getTags() as $tag) {
            if ($tag->getSha() === $this->getSha()) {
                $result = true;
                break;
            }
        }

        return $result;
    }
public function tagged()
    {
        $result = false;

        /** @var Tag $tag */
        foreach ($this->repository->getTags() as $tag) {
            if ($tag->getSha() === $this->getSha()) {
                $result = true;
                break;
            }
        }

        return $result;
    }
public function tagged ( ) { $ result = false ; /** @var Tag $tag */ foreach ( $ this -> repository -> getTags ( ) as $ tag ) { if ( $ tag -> getSha ( ) === $ this -> getSha ( ) ) { $ result = true ; break ; } } return $ result ; }
Is the commit tagged?

return true if some tag of repository point to this commit
return false otherwise

@return bool
Is the commit tagged?