public function getObjectProperty($object, $property)
    {
        $result = null;

        try {
            $result = ObjectAccess::getProperty($object, $property);
        } catch (\Exception $exception) {
            if (false === $exception instanceof SilentExceptionInterface) {
                throw $exception;
            }
        }

        return $result;
    }
public function getObjectProperty($object, $property)
    {
        $result = null;

        try {
            $result = ObjectAccess::getProperty($object, $property);
        } catch (\Exception $exception) {
            if (false === $exception instanceof SilentExceptionInterface) {
                throw $exception;
            }
        }

        return $result;
    }
public function getObjectProperty ( $ object , $ property ) { $ result = null ; try { $ result = ObjectAccess :: getProperty ( $ object , $ property ) ; } catch ( \ Exception $ exception ) { if ( false === $ exception instanceof SilentExceptionInterface ) { throw $ exception ; } } return $ result ; }
This function will try to get a given property for a given object.

Its particularity is that if the getter method for this property is used,
the method may throw an exception that implements the interface
`SilentExceptionInterface`. In that case, the exception is catch and
`null` is returned.

This allows more flexibility for the developer, who may still throw
exceptions in getter methods for implementation concerns, but these
exceptions wont block Configuration Object API processing.

@see \Romm\ConfigurationObject\Exceptions\SilentExceptionInterface
@see \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getProperty()

@param object $object
@param string $property
@return mixed
@throws \Exception
This function will try to get a given property for a given object .