<?php

class Graph
{
	public function Draw($name) {
	echo $name;
}
}

class NewGraph extends Graph
{
	private $_graphData=[];
	public function getName()
	{
		return $this->_graphData['Name'];
	}
	public function setName($newName)
	{
		$this->_graphData['Name']=$newName;
	}
	public function draw()
	{
		parent::Draw($this->_graphData['Name']);
	
	}
}

$ng = new NewGraph();
$ng->setName('TBT');
echo $ng->getName() . '\r\n';
$ng->draw();