class EntityAvatarIdentifierProxy in Avatar Kit 8.2
Wraps an avatar identifier object with Drupal entity support.
Encapsulates any object implementing \dpi\ak\AvatarIdentifierInterface while adding Drupal entity specific functionality.
Proxies some methods back to an avatar identifier object.
Hierarchy
- class \Drupal\avatars\EntityAvatarIdentifier extends \dpi\ak\AvatarIdentifier implements EntityAvatarIdentifierInterface
- class \Drupal\avatars\EntityAvatarIdentifierProxy
Expanded class hierarchy of EntityAvatarIdentifierProxy
File
- src/
EntityAvatarIdentifierProxy.php, line 15
Namespace
Drupal\avatarsView source
class EntityAvatarIdentifierProxy extends EntityAvatarIdentifier {
/**
* An avatar identifier object.
*
* @var \dpi\ak\AvatarIdentifierInterface
*/
protected $original;
/**
* Creates a new EntityAvatarIdentifierProxy object.
*
* @param \dpi\ak\AvatarIdentifierInterface $identifier
* An avatar identifier object.
*/
public function __construct(AvatarIdentifierInterface $identifier) {
$this->original = $identifier;
}
/**
* {@inheritdoc}
*/
public function getRaw() {
return $this->original
->getRaw();
}
/**
* {@inheritdoc}
*/
public function setRaw(string $raw) {
return $this->original
->setRaw($raw);
}
/**
* {@inheritdoc}
*/
public function getHashed() {
return $this->original
->getHashed();
}
/**
* {@inheritdoc}
*/
public function setHashed(string $string) {
return $this->original
->setHashed($string);
}
/**
* {@inheritdoc}
*/
public function setHasher(callable $callable) {
return $this->original
->setHasher($callable);
}
}