| 1 | # This code is part of Perl distribution User-Identity version 4.00. | ||||||||||||
| 2 | # The POD got stripped from this file by OODoc version 3.05. | ||||||||||||
| 3 | # For contributors see file ChangeLog. | ||||||||||||
| 4 | |||||||||||||
| 5 | # This software is copyright (c) 2003-2025 by Mark Overmeer. | ||||||||||||
| 6 | |||||||||||||
| 7 | # This is free software; you can redistribute it and/or modify it under | ||||||||||||
| 8 | # the same terms as the Perl 5 programming language system itself. | ||||||||||||
| 9 | # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later | ||||||||||||
| 10 | |||||||||||||
| 11 | |||||||||||||
| 12 | package User::Identity::Collection::Locations;{ | ||||||||||||
| 13 | 1 | our $VERSION = '4.00'; | |||||||||||
| 14 | } | ||||||||||||
| 15 | |||||||||||||
| 16 | 1 | ▶ | use parent 'User::Identity::Collection'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | |||||||||||||
| 18 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 19 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 20 | |||||||||||||
| 21 | 1 | ▶ | use Log::Report 'user-identity'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 22 | |||||||||||||
| 23 | 1 | ▶ | use User::Identity::Location (); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 24 | |||||||||||||
| 25 | #-------------------- | ||||||||||||
| 26 | |||||||||||||
| 27 | sub new(@) | ||||||||||||
| 28 | 1 | ▶ | { my $class = shift; | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||
| 29 | 1 | $class->SUPER::new(locations => @_); | |||||||||||
| 30 | } | ||||||||||||
| 31 | |||||||||||||
| 32 | sub init($) | ||||||||||||
| 33 | 1 | ▶ | { my ($self, $args) = @_; | ||||||||||
|
Subroutine
init: called CC=2 SCAR=7.1
Pod
undocumented
| |||||||||||||
| 34 | 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"}
| |||||||||||||
| 35 | 1 | $self->SUPER::init($args); | |||||||||||
| 36 | } | ||||||||||||
| 37 | |||||||||||||
| 38 | sub type() { 'whereabouts' } | ||||||||||||
| 39 | |||||||||||||
| 40 | 1 | 1; | |||||||||||