Skip to content

Access $this Data on plugin magento

i built an after plugin and i need to access data inside $this.
enter image description here

In the image you can see the hierarchy.

The problem is that i need to access to the id of the CompanyModel value (22).

but inside $this i can only call $this->companyRepository and i can’t access data from outside.
how can i access $this value (hopefully getting them as an object?)

Thanks