File tree Expand file tree Collapse file tree 3 files changed +106
-0
lines changed Expand file tree Collapse file tree 3 files changed +106
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,13 @@ public function description() : string
62
62
return null ;
63
63
}
64
64
65
+ /**
66
+ * @return string
67
+ */
68
+ public function url () : string
69
+ {
70
+ return null ;
71
+ }
65
72
66
73
/**
67
74
* @param string $name
@@ -72,6 +79,33 @@ public function withName(string $name): ProfileInterface
72
79
return clone $ this ;
73
80
}
74
81
82
+ /**
83
+ * @param string $location
84
+ * @return ProfileInterface
85
+ */
86
+ public function withLocation (string $ location ): ProfileInterface
87
+ {
88
+ return clone $ this ;
89
+ }
90
+
91
+ /**
92
+ * @param string $description
93
+ * @return ProfileInterface
94
+ */
95
+ public function withDescription (string $ description ): ProfileInterface
96
+ {
97
+ return clone $ this ;
98
+ }
99
+
100
+ /**
101
+ * @param string $url
102
+ * @return ProfileInterface
103
+ */
104
+ public function withUrl (string $ url ): ProfileInterface
105
+ {
106
+ return clone $ this ;
107
+ }
108
+
75
109
public function putProfile ()
76
110
{
77
111
}
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ abstract class Profile extends AbstractResource implements ProfileInterface
45
45
*/
46
46
protected $ description ;
47
47
48
+ /**
49
+ * @var string
50
+ */
51
+ protected $ url ;
52
+
48
53
/**
49
54
* @var array
50
55
*/
@@ -106,6 +111,14 @@ public function description() : string
106
111
return $ this ->description ;
107
112
}
108
113
114
+ /**
115
+ * @return string
116
+ */
117
+ public function url () : string
118
+ {
119
+ return $ this ->url ;
120
+ }
121
+
109
122
/**
110
123
* @param string $name
111
124
* @return ProfileInterface
@@ -118,6 +131,42 @@ public function withName(string $name): ProfileInterface
118
131
return $ clone ;
119
132
}
120
133
134
+ /**
135
+ * @param string $location
136
+ * @return ProfileInterface
137
+ */
138
+ public function withLocation (string $ location ): ProfileInterface
139
+ {
140
+ $ clone = clone $ this ;
141
+ $ clone ->location = $ location ;
142
+ $ clone ->changedFields ['location ' ] = 'location ' ;
143
+ return $ clone ;
144
+ }
145
+
146
+ /**
147
+ * @param string $description
148
+ * @return ProfileInterface
149
+ */
150
+ public function withDescription (string $ description ): ProfileInterface
151
+ {
152
+ $ clone = clone $ this ;
153
+ $ clone ->description = $ description ;
154
+ $ clone ->changedFields ['description ' ] = 'description ' ;
155
+ return $ clone ;
156
+ }
157
+
158
+ /**
159
+ * @param string $url
160
+ * @return ProfileInterface
161
+ */
162
+ public function withUrl (string $ url ): ProfileInterface
163
+ {
164
+ $ clone = clone $ this ;
165
+ $ clone ->url = $ url ;
166
+ $ clone ->changedFields ['url ' ] = 'url ' ;
167
+ return $ clone ;
168
+ }
169
+
121
170
public function putProfile ()
122
171
{
123
172
}
Original file line number Diff line number Diff line change @@ -43,12 +43,35 @@ public function profileLocation() : string;
43
43
*/
44
44
public function description () : string ;
45
45
46
+ /**
47
+ * @return string
48
+ */
49
+ public function url () : string ;
50
+
46
51
/**
47
52
* @param string $name
48
53
* @return static
49
54
*/
50
55
public function withName (string $ name );
51
56
57
+ /**
58
+ * @param string $location
59
+ * @return static
60
+ */
61
+ public function withLocation (string $ location );
62
+
63
+ /**
64
+ * @param string $description
65
+ * @return static
66
+ */
67
+ public function withDescription (string $ description );
68
+
69
+ /**
70
+ * @param string $url
71
+ * @return static
72
+ */
73
+ public function withUrl (string $ url );
74
+
52
75
/**
53
76
* @return static
54
77
*/
You can’t perform that action at this time.
0 commit comments