src/AbstractArrayBackedDaftObject.php
protected function RetrievePropertyValueFromData(string $property)
    {
        $isNullable = in_array(
            $property,
            static::DaftObjectNullableProperties(),
            DefinitionAssistant::IN_ARRAY_STRICT_MODE
        );

        if ( ! array_key_exists($property, $this->data) && ! $isNullable) {
            throw Exceptions\Factory::PropertyNotNullableException(static::class, $property);
        } elseif ($isNullable) {
            return $this->data[$property] ?? null;
        }

        return $this->data[$property];
    }
protected function RetrievePropertyValueFromData(string $property)
    {
        $isNullable = in_array(
            $property,
            static::DaftObjectNullableProperties(),
            DefinitionAssistant::IN_ARRAY_STRICT_MODE
        );

        if ( ! array_key_exists($property, $this->data) && ! $isNullable) {
            throw Exceptions\Factory::PropertyNotNullableException(static::class, $property);
        } elseif ($isNullable) {
            return $this->data[$property] ?? null;
        }

        return $this->data[$property];
    }
protected function RetrievePropertyValueFromData ( string $ property ) { $ isNullable = in_array ( $ property , static :: DaftObjectNullableProperties ( ) , DefinitionAssistant :: IN_ARRAY_STRICT_MODE ) ; if ( ! array_key_exists ( $ property , $ this -> data ) && ! $ isNullable ) { throw Exceptions \ Factory :: PropertyNotNullableException ( static :: class , $ property ) ; } elseif ( $ isNullable ) { return $ this -> data [ $ property ] ?? null ; } return $ this -> data [ $ property ] ; }
Retrieve a property from data.

@param string $property the property being retrieved

@throws Exceptions\PropertyNotNullableException if value is not set and $property is not listed as nullabe

@return scalar|array|object|null the property value
Retrieve a property from data .