Skip to content

Commit

Permalink
add php doc for return type
Browse files Browse the repository at this point in the history
  • Loading branch information
mbpcoder committed Feb 4, 2021
1 parent 887c56d commit 5062531
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Traits/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Pasoonate\Traits;

use Pasoonate\Date;
use Pasoonate\DateTime;
use Pasoonate\Time;

trait Base
Expand Down Expand Up @@ -243,6 +244,9 @@ public function setDate($year, $month, $day)
return $this;
}

/**
* @return Date
*/
public function getDate()
{
$datetime = $this->currentCalendar->timestampToDate($this->timestamp + $this->timezoneOffset);
Expand All @@ -258,6 +262,9 @@ public function setTime($hour, $minute, $second)
return $this;
}

/**
* @return Time
*/
public function getTime()
{
$datetime = $this->currentCalendar->timestampToDate($this->timestamp + $this->timezoneOffset);
Expand All @@ -273,6 +280,10 @@ public function setDateTime($year, $month, $day, $hour, $minute, $second)
return $this;
}

/**
* @return DateTime
*
*/
public function getDateTime()
{
return $this->currentCalendar->timestampToDate($this->timestamp + $this->timezoneOffset);
Expand Down

0 comments on commit 5062531

Please sign in to comment.