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?

Not sure if anyone missed this post. Would be great to get some feedback.

I have a very different use case, but I also need programmatic access to Component property text to dynamically create the links ‘tel:12345’ and mail-to link ‘mailto:mail@example.com’

At the moment I have to create two properties, a text and a link property, whereas the link property is redundant and access to the props like ‘tel:{prop_phone}’ and ‘mailto:{prop_mail}’ would solve that with two text properties.