-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ahmet
committed
Sep 21, 2021
1 parent
a052592
commit c104be7
Showing
4 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# v1.0.3 | ||
- Artık kurala parametre atanabiliyor. [Detaylar](Readme.md#parametre-gönderme) | ||
# v1.0.1 | ||
- Opsiyonel alanlar için uyarı verilmeyecek. | ||
- Opsiyonel olup, boş olan alanlara kural belirtilmişse ilgili kuraldan hata mesajı döndürme düzeltildi. | ||
- | ||
- Opsiyonel olup, boş olan alanlara kural belirtilmişse ilgili kuraldan hata mesajı döndürme düzeltildi. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace ahmetbarut\Validation\Validation\Rules; | ||
|
||
use ahmetbarut\Validation\Validation\Rule; | ||
|
||
class Test implements Rule | ||
{ | ||
public function __construct(protected $limit) | ||
{ | ||
|
||
} | ||
|
||
public function check($attr, $value): bool | ||
{ | ||
return false; | ||
} | ||
|
||
public function message(): string | ||
{ | ||
return "deneme test ediliyor. : {$this->limit}"; | ||
} | ||
} |