Accessing component properties in custom query (PHP)

I have a component (1.12 release) that I want to have a text property where people can enter comma separated post IDs into a text field called Post IDs and then use a query loop in the component to filter the returned posts to only match those IDs.
The standard query does not have the capability to do this so I turned to using a custom query (PHP) to do the job. The issue is that I need to access the component properties so that I can insert it into the following code:

return [
‘post_type’ => [‘post’, ‘article’, ‘video’, ‘audio’],
‘post__in’ => explode(‘,’, $settings[‘post_ids’]),
‘orderby’ => ‘post__in’,
‘posts_per_page’ => count($post_ids)
];

Some research said that Bricks uses a $setting array and that I could access the property values that way but the query is just returning posts whether they match or not.

Any thoughts?