for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Transfer.
*
* For the full copyright and license information, please view the LICENSE file located
* in the root directory.
*/
namespace Transfer\EzPlatform\Repository\Values;
use Transfer\EzPlatform\Repository\Values\Mapper\UserGroupMapper;
* User Group object.
* @see http://transfer-framework.com/docs/1.0/sources_and_targets/ezplatform/the_objects/usergroupobject.html
class UserGroupObject extends EzPlatformObject
{
* @var UserGroupMapper
private $mapper;
* UserGroupObject constructor.
* @param mixed $data
* @param array $properties
public function __construct(array $data, array $properties = array())
if (!isset($data['parent_id'])) {
$data['parent_id'] = 12;
}
if (!isset($data['content_type_identifier'])) {
$data['content_type_identifier'] = 'user_group';
parent::__construct($data, $properties);
* @return UserGroupMapper
public function getMapper()
if (!$this->mapper) {
$this->mapper = new UserGroupMapper($this);
return $this->mapper;
* Allows direct control in UserGroupCreateStruct and UserGroupUpdateStruct.
* @param \Closure $callback
public function setStructCallback(\Closure $callback)
$this->setProperty('struct_callback', $callback);