Get Behavior's Constant From An Action

I created the behavior and attached it to a controller. In this behavior I have few constants.

How can I get this constants from an action?

self::CONST_NAME causes an error “Fatal error: Undefined class constant ‘CONST_NAME’”.

At the same time, if I create in behavior not a constant, but a public variable, then I can access this variable and all works fine. But I want to use constants.


YourBihavior::CONST_NAME ?

Thank you! It works!