|
5 | 5 | use DateTime;
|
6 | 6 | use FiveamCode\LaravelNotionApi\Entities\Properties\Checkbox;
|
7 | 7 | use FiveamCode\LaravelNotionApi\Entities\Properties\Date;
|
| 8 | +use FiveamCode\LaravelNotionApi\Entities\Properties\Email; |
8 | 9 | use FiveamCode\LaravelNotionApi\Entities\Properties\MultiSelect;
|
9 | 10 | use FiveamCode\LaravelNotionApi\Entities\Properties\Number;
|
10 | 11 | use FiveamCode\LaravelNotionApi\Entities\Properties\People;
|
| 12 | +use FiveamCode\LaravelNotionApi\Entities\Properties\PhoneNumber; |
11 | 13 | use Illuminate\Support\Arr;
|
12 | 14 | use Illuminate\Support\Collection;
|
13 | 15 | use FiveamCode\LaravelNotionApi\Entities\Properties\Property;
|
14 | 16 | use FiveamCode\LaravelNotionApi\Entities\Properties\Relation;
|
15 | 17 | use FiveamCode\LaravelNotionApi\Entities\Properties\Select;
|
16 | 18 | use FiveamCode\LaravelNotionApi\Entities\Properties\Text;
|
17 | 19 | use FiveamCode\LaravelNotionApi\Entities\Properties\Title;
|
| 20 | +use FiveamCode\LaravelNotionApi\Entities\Properties\Url; |
18 | 21 | use FiveamCode\LaravelNotionApi\Exceptions\HandlingException;
|
19 | 22 |
|
20 | 23 | /**
|
@@ -198,6 +201,33 @@ public function setSelect(string $propertyTitle, string $name): void
|
198 | 201 | $this->set($propertyTitle, Select::instance($name));
|
199 | 202 | }
|
200 | 203 |
|
| 204 | + /** |
| 205 | + * @param $propertyTitle |
| 206 | + * @param $url |
| 207 | + */ |
| 208 | + public function setUrl(string $propertyTitle, string $url): void |
| 209 | + { |
| 210 | + $this->set($propertyTitle, Url::instance($url)); |
| 211 | + } |
| 212 | + |
| 213 | + /** |
| 214 | + * @param $propertyTitle |
| 215 | + * @param $phoneNumber |
| 216 | + */ |
| 217 | + public function setPhoneNumber(string $propertyTitle, string $phoneNumber): void |
| 218 | + { |
| 219 | + $this->set($propertyTitle, PhoneNumber::instance($phoneNumber)); |
| 220 | + } |
| 221 | + |
| 222 | + /** |
| 223 | + * @param $propertyTitle |
| 224 | + * @param $email |
| 225 | + */ |
| 226 | + public function setEmail(string $propertyTitle, string $email): void |
| 227 | + { |
| 228 | + $this->set($propertyTitle, Email::instance($email)); |
| 229 | + } |
| 230 | + |
201 | 231 | /**
|
202 | 232 | * @param $propertyTitle
|
203 | 233 | * @param $names
|
|
0 commit comments