Skip to content

Commit 14b68ac

Browse files
Address PR comment - set ServerTypeInfo from ListItemFormUpdateValue class
1 parent e1f670d commit 14b68ac

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Runtime/ServerTypeInfo.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Office365\Complex;
77
use Office365\GraphServiceClient;
88
use Office365\SharePoint\ClientContext;
9-
use Office365\SharePoint\ListItemFormUpdateValue;
109

1110
class ServerTypeInfo
1211
{
@@ -75,9 +74,6 @@ public static function resolve($type)
7574
$typeName = lcfirst($typeName);
7675
}
7776
}
78-
elseif($type instanceof ListItemFormUpdateValue) {
79-
if(is_null($namespace)) $namespace = "SP";
80-
}
8177
elseif($type instanceof Complex){
8278
if(is_null($namespace)) $namespace = "microsoft.graph";
8379
$typeName = lcfirst($typeName);

src/SharePoint/ListItemFormUpdateValue.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
namespace Office365\SharePoint;
77

88
use Office365\Runtime\ClientValue;
9+
use Office365\Runtime\ServerTypeInfo;
10+
911
/**
1012
* Specifies
1113
* the properties of a list itemfield (2)
@@ -32,6 +34,12 @@ public function toJson()
3234
return $json;
3335
}
3436

37+
38+
public function getServerTypeInfo()
39+
{
40+
return new ServerTypeInfo("SP", "ListItemFormUpdateValue");
41+
}
42+
3543
/**
3644
* Specifies
3745
* the error message result after validating the value for the field (2).

0 commit comments

Comments
 (0)