protected function finalRecipients($passedTo)
    {
        if (!$this->overwrittenTo) {
            return $passedTo;
        }

        $overwrittenTo = $this->overwrittenTo;
        $this->overwrittenTo = [];
        return $overwrittenTo;
    }
protected function finalRecipients($passedTo)
    {
        if (!$this->overwrittenTo) {
            return $passedTo;
        }

        $overwrittenTo = $this->overwrittenTo;
        $this->overwrittenTo = [];
        return $overwrittenTo;
    }
protected function finalRecipients ( $ passedTo ) { if ( ! $ this -> overwrittenTo ) { return $ passedTo ; } $ overwrittenTo = $ this -> overwrittenTo ; $ this -> overwrittenTo = [ ] ; return $ overwrittenTo ; }
Returns only the overwritten recipients or if non set the passed ones

@param array $passedTo
@return array
Returns only the overwritten recipients or if non set the passed ones