@@ -11,28 +11,28 @@ class Email implements DataTypeInterface
1111 *
1212 * @var string
1313 */
14- private $ prefix = 'mailto: ' ;
14+ protected $ prefix = 'mailto: ' ;
1515
1616 /**
1717 * The email address.
1818 *
1919 * @var string
2020 */
21- private $ email ;
21+ protected $ email ;
2222
2323 /**
2424 * The subject of the email.
2525 *
2626 * @var string
2727 */
28- private $ subject ;
28+ protected $ subject ;
2929
3030 /**
3131 * The body of an email.
3232 *
3333 * @var string
3434 */
35- private $ body ;
35+ protected $ body ;
3636
3737 /**
3838 * Generates the DataType Object and sets all of its properties.
@@ -59,7 +59,7 @@ public function __toString()
5959 *
6060 * @return string
6161 */
62- private function buildEmailString ()
62+ protected function buildEmailString ()
6363 {
6464 $ email = $ this ->prefix .$ this ->email ;
6565
@@ -79,7 +79,7 @@ private function buildEmailString()
7979 *
8080 * @param $arguments
8181 */
82- private function setProperties (array $ arguments )
82+ protected function setProperties (array $ arguments )
8383 {
8484 if (isset ($ arguments [0 ])) {
8585 $ this ->setEmail ($ arguments [0 ]);
@@ -97,7 +97,7 @@ private function setProperties(array $arguments)
9797 *
9898 * @param $email
9999 */
100- private function setEmail ($ email )
100+ protected function setEmail ($ email )
101101 {
102102 if ($ this ->isValidEmail ($ email )) {
103103 $ this ->email = $ email ;
@@ -111,7 +111,7 @@ private function setEmail($email)
111111 *
112112 * @return bool
113113 */
114- private function isValidEmail ($ email )
114+ protected function isValidEmail ($ email )
115115 {
116116 if (!filter_var ($ email , FILTER_VALIDATE_EMAIL )) {
117117 throw new InvalidArgumentException ('Invalid email provided ' );
0 commit comments