public function Interval::__toString in Commerce Core 8.2
Gets the string representation of the interval.
Return value
string The string representation of the interval.
2 calls to Interval::__toString()
- Interval::add in src/
Interval.php  - Adds the interval to the given date.
 - Interval::subtract in src/
Interval.php  - Subtracts the interval from the given date.
 
File
- src/
Interval.php, line 72  
Class
- Interval
 - Provides a value object for intervals (1 month, 14 days, etc).
 
Namespace
Drupal\commerceCode
public function __toString() : string {
  return $this->number . ' ' . $this->unit;
}