public function isTypeAuditable($key)
    {
        $auditableTypes = isset($this->auditableTypes) ? $this->auditableTypes : ['created', 'saved', 'deleted'];

        // Checks if the type is in the collection of type-auditable
        if (in_array($key, $auditableTypes)) {
            return true;
        }

        return;
    }
public function isTypeAuditable($key)
    {
        $auditableTypes = isset($this->auditableTypes) ? $this->auditableTypes : ['created', 'saved', 'deleted'];

        // Checks if the type is in the collection of type-auditable
        if (in_array($key, $auditableTypes)) {
            return true;
        }

        return;
    }
public function isTypeAuditable ( $ key ) { $ auditableTypes = isset ( $ this -> auditableTypes ) ? $ this -> auditableTypes : [ 'created' , 'saved' , 'deleted' ] ; // Checks if the type is in the collection of type-auditable if ( in_array ( $ key , $ auditableTypes ) ) { return true ; } return ; }
Verify is type auditable.

@param $key

@return bool
Verify is type auditable .