2727 */
2828class ResourceDocument extends DataDocument implements HasAttributesInterface, ResourceInterface {
2929 protected ResourceIdentifierObject |ResourceObject $ resource ;
30- /** @var TypeAlias_InternalOptions */
30+ /** @var PHPStanTypeAlias_InternalOptions */
3131 protected static array $ defaults = [
3232 /**
3333 * add resources inside relationships to /included when adding resources to the collection
@@ -51,7 +51,7 @@ public function __construct(?string $type=null, string|int|null $id=null) {
5151 */
5252
5353 /**
54- * @param TypeAlias_InternalOptions $options {@see ResourceDocument::$defaults} {@see ResourceObject::$defaults}
54+ * @param PHPStanTypeAlias_InternalOptions $options {@see ResourceDocument::$defaults} {@see ResourceObject::$defaults}
5555 */
5656 public static function fromArray (
5757 array $ attributes ,
@@ -66,7 +66,7 @@ public static function fromArray(
6666 }
6767
6868 /**
69- * @param TypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
69+ * @param PHPStanTypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
7070 */
7171 public static function fromObject (
7272 object $ attributes ,
@@ -82,8 +82,8 @@ public static function fromObject(
8282 /**
8383 * add key-value pairs to the resource's attributes
8484 *
85- * @param mixed $value objects will be converted using `get_object_vars()`
86- * @param TypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
85+ * @param mixed $value objects will be converted using `get_object_vars()`
86+ * @param PHPStanTypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
8787 */
8888 public function add (string $ key , mixed $ value , array $ options =[]): void {
8989 if ($ this ->resource instanceof ResourceObject === false ) {
@@ -101,7 +101,7 @@ public function add(string $key, mixed $value, array $options=[]): void {
101101 * @param CollectionDocument|ResourceInterface|ResourceInterface[]|null $relation
102102 * @param array<string, ?string> $links
103103 * @param array<string, mixed> $meta
104- * @param TypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
104+ * @param PHPStanTypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
105105 */
106106 public function addRelationship (
107107 string $ key ,
@@ -191,7 +191,7 @@ public function setLocalId(string|int $localId): void {
191191 }
192192
193193 /**
194- * @param TypeAlias_InternalOptions $options {@see ResourceObject::$defaults}
194+ * @param PHPStanTypeAlias_InternalOptions $options {@see ResourceObject::$defaults}
195195 */
196196 public function setAttributesObject (AttributesObject $ attributesObject , array $ options =[]): void {
197197 if ($ this ->resource instanceof ResourceObject === false ) {
@@ -206,7 +206,7 @@ public function setAttributesObject(AttributesObject $attributesObject, array $o
206206 *
207207 * adds included resources if found inside the RelationshipObject, unless $options['includeContainedResources'] is set to false
208208 *
209- * @param TypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
209+ * @param PHPStanTypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
210210 */
211211 public function addRelationshipObject (string $ key , RelationshipObject $ relationshipObject , array $ options =[]): void {
212212 if ($ this ->resource instanceof ResourceObject === false ) {
@@ -227,7 +227,7 @@ public function addRelationshipObject(string $key, RelationshipObject $relations
227227 *
228228 * adds included resources if found inside the RelationshipObjects inside the RelationshipsObject, unless $options['includeContainedResources'] is set to false
229229 *
230- * @param TypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
230+ * @param PHPStanTypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
231231 */
232232 public function setRelationshipsObject (RelationshipsObject $ relationshipsObject , array $ options =[]): void {
233233 if ($ this ->resource instanceof ResourceObject === false ) {
@@ -252,7 +252,7 @@ public function setRelationshipsObject(RelationshipsObject $relationshipsObject,
252252 *
253253 * adds included resources if found inside the resource's relationships, unless $options['includeContainedResources'] is set to false
254254 *
255- * @param TypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
255+ * @param PHPStanTypeAlias_InternalOptions $options {@see ResourceDocument::$defaults}
256256 *
257257 * @throws InputException if the $resource is a ResourceDocument itself
258258 */
0 commit comments