public DurationInterface::getDuration()
Interface for durations. Hierarchy interface \Drupal\Core\TypedData\Type\
public DurationInterface::setDuration(\DateInterval $