Example #1
0
 /**
  * Define internal static values.
  * @codeCoverageIgnore
  */
 public static function initialize()
 {
     if (!static::$initialized) {
         static::$initialized = true;
         static::$placeholder = new \stdClass();
     }
 }
Example #2
0
 /**
  * Return a placeholder object instance.
  *
  * @param string $type
  * @return \Codesleeve\Stapler\Placeholder
  */
 public static function setPlaceholderInstance(PlaceholderInterface $placeholder)
 {
     static::$placeholder = $placeholder;
 }