public function loadSubjectObjectives($subject)
    {
        $target = $this->getSubjectType($subject);
        $repoMethod = "findBy{$target}";

        return $this->objectiveRepo->{$repoMethod}($subject);
    }
public function loadSubjectObjectives($subject)
    {
        $target = $this->getSubjectType($subject);
        $repoMethod = "findBy{$target}";

        return $this->objectiveRepo->{$repoMethod}($subject);
    }
public function loadSubjectObjectives ( $ subject ) { $ target = $ this -> getSubjectType ( $ subject ) ; $ repoMethod = "findBy{$target}" ; return $ this -> objectiveRepo -> { $ repoMethod } ( $ subject ) ; }
Returns an array representation of the objectives assigned to a user or a group.

@param User|Group $subject

@return array

@throws \Exception if the subject is not an instance of User or Group
Returns an array representation of the objectives assigned to a user or a group .