src/Sulu/Bundle/MediaBundle/Api/Media.php
public function addTargetGroup(TargetGroupInterface $targetGroup)
    {
        $fileVersion = $this->getFileVersion();
        $fileVersion->addTargetGroup($targetGroup);

        return $this;
    }
public function addTargetGroup(TargetGroupInterface $targetGroup)
    {
        $fileVersion = $this->getFileVersion();
        $fileVersion->addTargetGroup($targetGroup);

        return $this;
    }
public function addTargetGroup ( TargetGroupInterface $ targetGroup ) { $ fileVersion = $ this -> getFileVersion ( ) ; $ fileVersion -> addTargetGroup ( $ targetGroup ) ; return $ this ; }
Adds a target group to the entity.

@param TargetGroupInterface $targetGroup

@return self
Adds a target group to the entity .