public function toArray()
    {
        return [
            'field' => $this->column,
            'references' => $this->references,
            'on' => $this->on,
            'on-delete' => $this->onDelete,
            'on-update' => $this->onUpdate,
            'references-model' => $this->getReferencesModel(),
            'is-self-reference' => $this->isSelfReference(),
        ];
    }
public function toArray()
    {
        return [
            'field' => $this->column,
            'references' => $this->references,
            'on' => $this->on,
            'on-delete' => $this->onDelete,
            'on-update' => $this->onUpdate,
            'references-model' => $this->getReferencesModel(),
            'is-self-reference' => $this->isSelfReference(),
        ];
    }
public function toArray ( ) { return [ 'field' => $ this -> column , 'references' => $ this -> references , 'on' => $ this -> on , 'on-delete' => $ this -> onDelete , 'on-update' => $ this -> onUpdate , 'references-model' => $ this -> getReferencesModel ( ) , 'is-self-reference' => $ this -> isSelfReference ( ) , ] ; }
Gets the constrain in an array format.

@return array
Gets the constrain in an array format .