code: public static function create(array $data): \One\Model\Photo
      {
          $url = self::validateUrl((string) self::checkData($data, 'url', ''));
          $ratio = self::validateString((string) self::checkData($data, 'ratio', ''));
          $description = self::validateString((string) self::checkData($data, 'description', ''));
  
          $information = self::validateString((string) self::checkData($data, 'information', ''));
  
          return self::createPhoto($url, $ratio, $description, $information);
      }
docs: function Create Photo Attachment