| 1 | package BalanceOfPower::Relations::Crisis; | ||
| 2 | $BalanceOfPower::Relations::Crisis::VERSION = '0.300010'; | ||
| 3 | #DEPRECATED | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use v5.10; | ||
| 7 | |||
| 8 | use Moo; | ||
| 9 | |||
| 10 | has factor => ( | ||
| 11 | is => 'rw', | ||
| 12 | default => 1 | ||
| 13 | ); | ||
| 14 | |||
| 15 | with 'BalanceOfPower::Relations::Role::Relation'; | ||
| 16 | |||
| 17 | sub print | ||
| 18 | { | ||
| 19 | my $self = shift; | ||
| 20 | return $self->node1 . " <-> " . $self->node2 . " (" . $self->factor . ")"; | ||
| 21 | } | ||
| 22 | |||
| 23 | 1; |