-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved Serializers assets to Assets dir
- Loading branch information
1 parent
52ecacd
commit 9876f90
Showing
4 changed files
with
64 additions
and
54 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace LaravelDoctrineTest\ORM\Assets\Serializers; | ||
|
||
use LaravelDoctrine\ORM\Serializers\Arrayable; | ||
|
||
class ArrayableEntity | ||
{ | ||
use Arrayable; | ||
|
||
protected $id = 'IDVALUE'; | ||
|
||
protected $name = 'NAMEVALUE'; | ||
|
||
protected $list = ['item1', 'item2']; | ||
|
||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
public function getList() | ||
{ | ||
return $this->list; | ||
} | ||
} |
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,31 @@ | ||
<?php | ||
|
||
namespace LaravelDoctrineTest\ORM\Assets\Serializers; | ||
|
||
use LaravelDoctrine\ORM\Serializers\Jsonable; | ||
|
||
class JsonableEntity | ||
{ | ||
use Jsonable; | ||
|
||
protected $id = 'IDVALUE'; | ||
|
||
protected $name = 'NAMEVALUE'; | ||
|
||
protected $numeric = "1"; | ||
|
||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
public function getNumeric() | ||
{ | ||
return $this->numeric; | ||
} | ||
} |
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