File: UserObject.pm

package info (click to toggle)
libcatalyst-actionrole-acl-perl 0.07-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 236 kB
  • sloc: perl: 1,874; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package Mock::UserObject;

use strict;
use warnings;

sub roles {
    my $self = shift;
    $self->{roles} = [@_] if @_;
    return $self->{roles} ? @{$self->{roles}} : ();
}
sub id {
    my $self = shift;
    $self->{id} = $_[0] if @_;
    return $self->{id};
}
sub supports {
    my $self = shift;
    $self->{supports} = [@_] if @_;
    return @{$self->{supports}};
}

1;