Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
Add getNull function. Function getNull returns null for java
Browse files Browse the repository at this point in the history
  • Loading branch information
MWGuy committed Apr 15, 2019
1 parent c0943e8 commit 31fb366
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.php.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: java-reflection-ext
version: 1.0.0
version: 1.1.0
description: Java Reflection API

plugins:
Expand Down
6 changes: 6 additions & 0 deletions sdk/java/reflection/ReflectionTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,10 @@ public function toByte($data): ReflectionObject {}
* @return ReflectionObject
*/
public function toShort($data): ReflectionObject {}

/**
* Null for java
* @return ReflectionObject
*/
public function getNull(): ReflectionObject {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,9 @@ public static ReflectionObject toByte(Environment environment, byte data) {
public static ReflectionObject toShort(Environment environment, short data) {
return new ReflectionObject(environment, data);
}

@Reflection.Signature
public static ReflectionObject getNull(Environment environment) {
return new ReflectionObject(environment, null);
}
}

0 comments on commit 31fb366

Please sign in to comment.