public function convertObjectParents(array $data = null)
    {
        return array_filter(
            array_map(
                [$this, 'convertObjectParentData'],
                (array) ($data ?? [])
            ),
            function ($item) {
                return !empty($item);
                // @TODO once a logger is available we should log an INFO message if the parent data could not be converted
            }
        );
    }
public function convertObjectParents(array $data = null)
    {
        return array_filter(
            array_map(
                [$this, 'convertObjectParentData'],
                (array) ($data ?? [])
            ),
            function ($item) {
                return !empty($item);
                // @TODO once a logger is available we should log an INFO message if the parent data could not be converted
            }
        );
    }
public function convertObjectParents ( array $ data = null ) { return array_filter ( array_map ( [ $ this , 'convertObjectParentData' ] , ( array ) ( $ data ?? [ ] ) ) , function ( $ item ) { return ! empty ( $ item ) ; // @TODO once a logger is available we should log an INFO message if the parent data could not be converted } ) ; }
Convert given input data to a list of ObjectParentData objects

@param array|null $data
@return ObjectParentData[]
Convert given input data to a list of ObjectParentData objects