Подсветка синтаксиса на сайте Google Code Prettify

public function activate(): void
{
  if ($this->isActive()) {
    throw new \DomainException('Article is already active.');
  }
  $this->status = self::STATUS_ACTIVE;
}