for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace seregazhuk\PinterestBot\Api\Forms;
abstract class Form
{
/**
* @return array
*/
abstract protected function getData();
public function toArray()
return array_filter($this->getData(), function ($item) {
return !is_null($item);
});
}