| 1 | package DBIx::ActiveRecord::Arel::Column; | ||||||||||||||||||||
| 2 | 2 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 2 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | 2 | our $USE_FULL_NAME = 0; | |||||||||||||||||||
| 6 | 2 | our $AS = {}; | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | 119 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 9 | 119 | my ($self, $table, $column) = @_; | |||||||||||||||||||
| 10 | 119 | bless {table => $table, column => $column}, $self; | |||||||||||||||||||
| 11 | } | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 153 | ▶ | sub table {shift->{table}} | ||||||||||||||||||
|
Subroutine
table: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 121 | ▶ | sub name { | ||||||||||||||||||
|
Subroutine
name: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||||||||||||
| 16 | 121 | my $self = shift; | |||||||||||||||||||
| 17 | 121 | ▶ | if ($USE_FULL_NAME) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 18 | 69 | ▶ | ($AS->{$self->table->table}||$self->table->table).'.'.$self->{column}; | ||||||||||||||||||
|
Condition66%2/3
$$DBIx::ActiveRecord::Arel::Column::AS{$self->table->table} || $self->table->table
MC/DC0%0/2
$$DBIx::ActiveRecord::Arel::Column::AS{$self->table->table} || $self->table->table
$$DBIx::ActiveRecord::Arel::Column::AS{$self->table->table}
$self->table->table
Truth table66%2/3
A || B
A= $$DBIx::ActiveRecord::Arel::Column::AS{$self->table->table}B= $self->table->table
| |||||||||||||||||||||
| 19 | } else { | ||||||||||||||||||||
| 20 | 52 | $self->{column}; | |||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | } | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | 2 | 1; | |||||||||||||||||||