-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed the alias check. Not adding anything, but complicating serial…
…ization use cases
- Loading branch information
1 parent
21c18ea
commit 93de0c9
Showing
4 changed files
with
97 additions
and
76 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
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,80 @@ | ||
<?php | ||
|
||
/** | ||
* Author: Nil Portugués Calderó <[email protected]> | ||
* Date: 7/18/15 | ||
* Time: 10:42 AM. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace NilPortugues\Tests\Api\Dummy\ComplexObject; | ||
|
||
use NilPortugues\Tests\Api\Dummy\ComplexObject\ValueObject\PostId; | ||
use NilPortugues\Tests\Api\Dummy\ComplexObject\ValueObject\UserId; | ||
|
||
class PostLite | ||
{ | ||
/** | ||
* @var PostId | ||
*/ | ||
private $postId; | ||
/** | ||
* @var | ||
*/ | ||
private $title; | ||
/** | ||
* @var | ||
*/ | ||
private $content; | ||
/** | ||
* @var User | ||
*/ | ||
private $author; | ||
|
||
/** | ||
* @param PostId $id | ||
* @param $title | ||
* @param $content | ||
* @param User $user | ||
*/ | ||
public function __construct(PostId $id, $title, $content, User $user) | ||
{ | ||
$this->postId = $id; | ||
$this->title = $title; | ||
$this->content = $content; | ||
$this->author = $user; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getContent() | ||
{ | ||
return $this->content; | ||
} | ||
|
||
/** | ||
* @return PostId | ||
*/ | ||
public function getPostId() | ||
{ | ||
return $this->postId; | ||
} | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getTitle() | ||
{ | ||
return $this->title; | ||
} | ||
|
||
/** | ||
* @return UserId | ||
*/ | ||
public function getUserId() | ||
{ | ||
return $this->author; | ||
} | ||
} |
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