code: public function getStatuses()
      {
          static $statuses;
  
          if (null === $statuses) {
              $statuses = [];
              $class = new ReflectionClass($this);
  
              foreach ($class->getConstants() as $constant => $value) {
                  if ('STATUS_' === substr($constant, 0, 7)) {
                      $statuses[] = $value;
                  }
              }
          }
  
          return $statuses;
      }
docs: Get statuses
  
  @return array