protected function containsForeignConstraint(array $properties)
    {
        return Helpers::isKeyExists($properties, 'foreign-constraint')
        && is_array($properties['foreign-constraint'])
        && Helpers::isKeyExists($properties['foreign-constraint'], 'field', 'references', 'on');
    }
protected function containsForeignConstraint(array $properties)
    {
        return Helpers::isKeyExists($properties, 'foreign-constraint')
        && is_array($properties['foreign-constraint'])
        && Helpers::isKeyExists($properties['foreign-constraint'], 'field', 'references', 'on');
    }
protected function containsForeignConstraint ( array $ properties ) { return Helpers :: isKeyExists ( $ properties , 'foreign-constraint' ) && is_array ( $ properties [ 'foreign-constraint' ] ) && Helpers :: isKeyExists ( $ properties [ 'foreign-constraint' ] , 'field' , 'references' , 'on' ) ; }
Check if given properties contains a valid foreign key object

@param array $properties

@return bool
Check if given properties contains a valid foreign key object