public function getTags()
    {
        $currentCommitTags = [];

        /** @var Tag $tag */
        foreach ($this->repository->getTags() as $tag) {
            if ($tag->getSha() === $this->getSha()) {
                $currentCommitTags[] = $tag;
            }
        }

        return $currentCommitTags;
    }
public function getTags()
    {
        $currentCommitTags = [];

        /** @var Tag $tag */
        foreach ($this->repository->getTags() as $tag) {
            if ($tag->getSha() === $this->getSha()) {
                $currentCommitTags[] = $tag;
            }
        }

        return $currentCommitTags;
    }
public function getTags ( ) { $ currentCommitTags = [ ] ; /** @var Tag $tag */ foreach ( $ this -> repository -> getTags ( ) as $ tag ) { if ( $ tag -> getSha ( ) === $ this -> getSha ( ) ) { $ currentCommitTags [ ] = $ tag ; } } return $ currentCommitTags ; }
Return Tags that point to this commit

@return Tag[]
Return Tags that point to this commit