-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
5 changed files
with
191 additions
and
122 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
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,32 @@ | ||
<?php | ||
/** | ||
* This file is part of the Divergence package. | ||
* | ||
* (c) Henry Paradiz <henry.paradiz@gmail.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Divergence\Models\Interfaces; | ||
|
||
/** | ||
* Field Get Mapper interface | ||
* | ||
* This is how each Model field type is processed. | ||
* | ||
* @package Divergence | ||
* @author Henry Paradiz <henry.paradiz@gmail.com> | ||
* | ||
*/ | ||
interface FieldGetMapper | ||
{ | ||
public static function getStringValue($value): ?string; | ||
public static function getBooleanValue($value): bool; | ||
public static function getDecimalValue($value): ?float; | ||
public static function getIntegerValue($value): ?int; | ||
public static function getDateValue($value); | ||
public static function getTimestampValue($value): ?int; | ||
public static function getSerializedValue($value); | ||
public static function getListValue($value, ?string $delimiter): array; | ||
} |
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
Oops, something went wrong.