-
Notifications
You must be signed in to change notification settings - Fork 2
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
8 changed files
with
244 additions
and
19 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
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
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,121 @@ | ||
<?php | ||
|
||
namespace Tests; | ||
|
||
class Document | ||
{ | ||
protected ?string $_id; | ||
protected ?string $name; | ||
|
||
protected ?string $brand; | ||
|
||
protected ?int $price; | ||
|
||
protected mixed $createdAt; | ||
|
||
protected mixed $updatedAt; | ||
|
||
public function __construct(?string $name = null, ?string $brand = null, ?int $price = null) | ||
{ | ||
$this->name = $name; | ||
$this->brand = $brand; | ||
$this->price = $price; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function get_id(): ?string | ||
{ | ||
return $this->_id; | ||
} | ||
|
||
/** | ||
* @param string|null $_id | ||
*/ | ||
public function set_id(?string $_id): void | ||
{ | ||
$this->_id = $_id; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getName(): ?string | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* @param string|null $name | ||
*/ | ||
public function setName(?string $name): void | ||
{ | ||
$this->name = $name; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getBrand(): ?string | ||
{ | ||
return $this->brand; | ||
} | ||
|
||
/** | ||
* @param string|null $brand | ||
*/ | ||
public function setBrand(?string $brand): void | ||
{ | ||
$this->brand = $brand; | ||
} | ||
|
||
/** | ||
* @return int|null | ||
*/ | ||
public function getPrice(): ?int | ||
{ | ||
return $this->price; | ||
} | ||
|
||
/** | ||
* @param int|null $price | ||
*/ | ||
public function setPrice(?int $price): void | ||
{ | ||
$this->price = $price; | ||
} | ||
|
||
/** | ||
* @return mixed|null | ||
*/ | ||
public function getCreatedAt(): mixed | ||
{ | ||
return $this->createdAt; | ||
} | ||
|
||
/** | ||
* @param mixed|null $createdAt | ||
*/ | ||
public function setCreatedAt(mixed $createdAt): void | ||
{ | ||
$this->createdAt = $createdAt; | ||
} | ||
|
||
/** | ||
* @return mixed|null | ||
*/ | ||
public function getUpdatedAt(): mixed | ||
{ | ||
return $this->updatedAt; | ||
} | ||
|
||
/** | ||
* @param mixed|null $updatedAt | ||
*/ | ||
public function setUpdatedAt(mixed $updatedAt): void | ||
{ | ||
$this->updatedAt = $updatedAt; | ||
} | ||
|
||
} |
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