FavAUserMail::sendFavAUserNotificationEmail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 3
crap 2
1
<?php
2
namespace CTL\SocialMapFavorites\Mail;
3
4
5
class FavAUserMail extends Mail{
6
7
8
  /**
9
   * Sending Email to User Being Favorited
10
   * @param  [type] $user      User Object (User Being Favorited)
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
11
   * @param  [type] $userFaved User Being Favorited
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
12
   * @param  [type] $faveeUser User Favoriting
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
13
   * @return [type]            [description]
0 ignored issues
show
Documentation introduced by
The doc-type [type] could not be parsed: Unknown type name "" at position 0. [(view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
14
   */
15
  public function sendFavAUserNotificationEmail($user, $userFaved, $faveeUser){
16
17
      $subject = 'You Subject Here';
18
      $view = 'folder.extension'; // point to where your email templates are stored
19
      $data = ['favorited_username' => $userFaved, 'favoritee_username' => $faveeUser];
20
21
      return $this->deliver($user, $subject, $view, $data);
22
  }
23
24
25
}