src/Manager/ComparisonManager.php
public function getDynamicAttribute(string $attributeSlug)
    {
        if (!isset($this->dynamicAttributes[$attributeSlug])) {
            throw new \InvalidArgumentException("The dynamic value for attribute $attributeSlug was not given");
        }
        return $this->dynamicAttributes[$attributeSlug];
    }
public function getDynamicAttribute(string $attributeSlug)
    {
        if (!isset($this->dynamicAttributes[$attributeSlug])) {
            throw new \InvalidArgumentException("The dynamic value for attribute $attributeSlug was not given");
        }
        return $this->dynamicAttributes[$attributeSlug];
    }
public function getDynamicAttribute ( string $ attributeSlug ) { if ( ! isset ( $ this -> dynamicAttributes [ $ attributeSlug ] ) ) { throw new \ InvalidArgumentException ( "The dynamic value for attribute $attributeSlug was not given" ) ; } return $ this -> dynamicAttributes [ $ attributeSlug ] ; }
A dynamic attribute is a value given by the user code as an option
If a policy rule attribute is dynamic,
we check that the developer has given a dynamic value in the options

Dynamic attributes are given with slugs as key

@param string $attributeSlug
@return mixed
@throws \InvalidArgumentException
A dynamic attribute is a value given by the user code as an option If a policy rule attribute is dynamic we check that the developer has given a dynamic value in the options