36trait GhostFieldAccessTrait {
45 private function getGhostFieldValue(
string $name ) {
46 if ( isset( $this->$name ) ) {
54 $protectedName =
"\x00*\x00{$name}";
55 if ( isset( $data[$protectedName] ) ) {
56 return $data[$protectedName];
61 $thisClass = get_class( $this );
62 $privateName =
"\x00{$thisClass}\x00{$name}";
63 if ( isset( $data[$privateName] ) ) {
64 return $data[$privateName];