public function setPlaceholder($name, $placeholder)
    {
        if ( ! is_string($placeholder) && ! is_callable($placeholder)) {
            throw InvalidArgumentException::invalidPlaceholder($name);
        }

        $this->placeholders[$name] = $placeholder;
    }
public function setPlaceholder($name, $placeholder)
    {
        if ( ! is_string($placeholder) && ! is_callable($placeholder)) {
            throw InvalidArgumentException::invalidPlaceholder($name);
        }

        $this->placeholders[$name] = $placeholder;
    }
public function setPlaceholder ( $ name , $ placeholder ) { if ( ! is_string ( $ placeholder ) && ! is_callable ( $ placeholder ) ) { throw InvalidArgumentException :: invalidPlaceholder ( $ name ) ; } $ this -> placeholders [ $ name ] = $ placeholder ; }
Sets a placeholder to be replaced in the template.

@param string          $name
@param string|callable $placeholder

@throws InvalidArgumentException
Sets a placeholder to be replaced in the template .