| 1 | # Copyrights 2003-2022 by [Mark Overmeer <markov@cpan.org>]. | ||||||||||||
| 2 | # For other contributors see ChangeLog. | ||||||||||||
| 3 | # See the manual pages for details on the licensing terms. | ||||||||||||
| 4 | # Pod stripped from pm file by OODoc 2.03. | ||||||||||||
| 5 | # This code is part of distribution User-Identity. Meta-POD processed with | ||||||||||||
| 6 | # OODoc into POD and HTML manual-pages. See README.md | ||||||||||||
| 7 | # Copyright Mark Overmeer. Licensed under the same terms as Perl itself. | ||||||||||||
| 8 | |||||||||||||
| 9 | package User::Identity::Collection::Locations; | ||||||||||||
| 10 | 1 | ▶ | use vars '$VERSION'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 11 | 1 | $VERSION = '1.01'; | |||||||||||
| 12 | |||||||||||||
| 13 | 1 | ▶ | use base 'User::Identity::Collection'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | |||||||||||||
| 15 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | |||||||||||||
| 18 | 1 | ▶ | use User::Identity::Location; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 19 | |||||||||||||
| 20 | 1 | ▶ | use Carp qw/croak/; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 21 | |||||||||||||
| 22 | |||||||||||||
| 23 | sub new(@) | ||||||||||||
| 24 | 1 | ▶ | { my $class = shift; | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 25 | 1 | $class->SUPER::new(locations => @_); | |||||||||||
| 26 | } | ||||||||||||
| 27 | |||||||||||||
| 28 | sub init($) | ||||||||||||
| 29 | 1 | ▶ | { my ($self, $args) = @_; | ||||||||||
|
Subroutine
init: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||||
| 30 | 1 | ▶ | $args->{item_type} ||= 'User::Identity::Location'; | ||||||||||
|
Condition50%1/2
$args->{"item_type"} ||= "User::Identity::Location"
MC/DC0%0/1
$args->{"item_type"} ||= "User::Identity::Location"
$args->{"item_type"}
Truth table50%1/2
A
A= $args->{"item_type"}
| |||||||||||||
| 31 | |||||||||||||
| 32 | 1 | $self->SUPER::init($args); | |||||||||||
| 33 | |||||||||||||
| 34 | 1 | $self; | |||||||||||
| 35 | } | ||||||||||||
| 36 | |||||||||||||
| 37 | sub type() { 'whereabouts' } | ||||||||||||
| 38 | |||||||||||||
| 39 | 1 | 1; | |||||||||||