Page MenuHomeWickedGov Phorge

NoTransform.php
No OneTemporary

Size
755 B
Referenced Files
None
Subscribers
None

NoTransform.php

<?php
namespace MobileFrontend\Transforms;
use DOMElement;
class NoTransform implements IMobileTransform {
/** @var self */
private static $instance;
/**
* Returns a static instance of NoTransform class.
*
* Note: There's no need in many instances of this class as it does nothing.
* So it's a common pre-optimization to make such classes as singleton, what's
* rather a matter of convenience than real optimization.
*
* @return self
*/
public static function getInstance(): self {
if ( self::$instance === null ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Does nothing.
* @param DOMElement $node to be transformed
*/
public function apply( DOMElement $node ) {
// nothing happens
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 21:41 (1 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
67/01/382623c1ddd7d47c0e103d33a4d8
Default Alt Text
NoTransform.php (755 B)

Event Timeline