PHP Class Newscoop\Entity\AuditEvent

Mostra file Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$action string
$created DateTime
$id integer
$is_public boolean
$resource_diff string
$resource_id string
$resource_title string
$resource_type string
$user Newscoop\Entity\User

Public Methods

Method Description
__construct ( )
getAction ( ) : string Get action.
getCreated ( ) : DateTime Get created.
getId ( ) : integer | null Get id.
getResourceDiff ( ) : array Get resource diff.
getResourceId ( ) : mixed Get resource id.
getResourceTitle ( ) : string Get resource title.
getResourceType ( ) : string Get resource type.
getUser ( ) : Newscoop\Entity\User | null Get user.
setAction ( string $action ) : Newscoop\Entity\AuditEvent Set action.
setResourceDiff ( array $diff ) : Newscoop\Entity\AuditEvent Set resource diff.
setResourceId ( mixed $resourceId ) : Newscoop\Entity\AuditEvent Set resource id.
setResourceTitle ( string $resourceTitle ) : Newscoop\Entity\AuditEvent Set resource title.
setResourceType ( string $resourceType ) : Newscoop\Entity\AuditEvent Set resource type.
setUser ( User $user ) : Newscoop\Entity\AuditEvent Set user

Method Details

__construct() public method

public __construct ( )

getAction() public method

Get action.
public getAction ( ) : string
return string

getCreated() public method

Get created.
public getCreated ( ) : DateTime
return DateTime

getId() public method

Get id.
public getId ( ) : integer | null
return integer | null

getResourceDiff() public method

Get resource diff.
public getResourceDiff ( ) : array
return array

getResourceId() public method

Get resource id.
public getResourceId ( ) : mixed
return mixed

getResourceTitle() public method

Get resource title.
public getResourceTitle ( ) : string
return string

getResourceType() public method

Get resource type.
public getResourceType ( ) : string
return string

getUser() public method

Get user.
public getUser ( ) : Newscoop\Entity\User | null
return Newscoop\Entity\User | null

setAction() public method

Set action.
public setAction ( string $action ) : Newscoop\Entity\AuditEvent
$action string
return Newscoop\Entity\AuditEvent

setResourceDiff() public method

Set resource diff.
public setResourceDiff ( array $diff ) : Newscoop\Entity\AuditEvent
$diff array
return Newscoop\Entity\AuditEvent

setResourceId() public method

Set resource id.
public setResourceId ( mixed $resourceId ) : Newscoop\Entity\AuditEvent
$resourceId mixed
return Newscoop\Entity\AuditEvent

setResourceTitle() public method

Set resource title.
public setResourceTitle ( string $resourceTitle ) : Newscoop\Entity\AuditEvent
$resourceTitle string
return Newscoop\Entity\AuditEvent

setResourceType() public method

Set resource type.
public setResourceType ( string $resourceType ) : Newscoop\Entity\AuditEvent
$resourceType string
return Newscoop\Entity\AuditEvent

setUser() public method

Set user
public setUser ( User $user ) : Newscoop\Entity\AuditEvent
$user User
return Newscoop\Entity\AuditEvent

Property Details

$action protected_oe property

protected string $action
return string

$created protected_oe property

protected DateTime $created
return DateTime

$id protected_oe property

protected int $id
return integer

$is_public protected_oe property

protected bool $is_public
return boolean

$resource_diff protected_oe property

protected string $resource_diff
return string

$resource_id protected_oe property

protected string $resource_id
return string

$resource_title protected_oe property

protected string $resource_title
return string

$resource_type protected_oe property

protected string $resource_type
return string

$user protected_oe property

protected Newscoop\Entity\User $user
return Newscoop\Entity\User